first working template

This commit is contained in:
paul committed 2026-09-18 08:56:37 +12:00
1 parent 62a3714562
commit ca6bea351a
21 files changed
+684 -31

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
-- {{product.name}}: operational data store schema (runs on the postgres service).
-- {{product.name}}: operational data store schema (runs on the ods service).
--
-- The product owns one PostgreSQL schema. pg_graphql reflects only the schemas on the
-- search_path, and the product's RPC endpoint (030_api.sql) sets the search_path to this
+1 -1
View File
@@ -1,4 +1,4 @@
-- {{product.name}}: API surface (runs on the postgres service).
-- {{product.name}}: API surface (runs on the ods service).
--
-- PostgREST connects as `authenticator` and switches to the platform's `anon` role, so the
-- GraphQL API sees exactly what `anon` is granted here. The lab has no authentication; a real
+4 -4
View File
@@ -1,8 +1,8 @@
-- {{product.name}}: optional sample rows (runs on the postgres service).
-- {{product.name}}: optional sample rows (runs on the ods service).
--
-- Delete this file if the product should deploy empty. Use fixed uuids so child rows can
-- reference their parents and so the same rows can be published to the inbound topics or
-- queried through GraphQL in examples. Keep it to a handful of rows per table.
-- The unit tests (tests/expectations.yaml) are written against these rows, so every product has
-- a seed. Use fixed uuids so child rows can reference their parents and the tests can find
-- them. Keep it to a handful of rows per table, satisfying every constraint.
-- >>> repeat per entity table, parents before children
INSERT INTO {{product.schema}}.{{table}} ({{table}}_id, {{column}}, {{parent_table}}_id) VALUES