11 lines
558 B
SQL
11 lines
558 B
SQL
-- {{product.name}}: optional sample rows (runs on the ods service).
|
|
--
|
|
-- 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
|
|
('{{uuid}}', {{value}}, '{{parent_uuid}}');
|
|
-- <<< end repeat
|