Files
semprini-data-product-templ…/canonical_data_product/example/ods/010_schema.sql
T
2026-09-18 08:56:37 +12:00

14 lines
373 B
PL/PgSQL

-- Example Address: operational data store schema (runs on the ods service).
CREATE SCHEMA example_address;
COMMENT ON SCHEMA example_address IS E'@graphql({"inflect_names": true, "introspection": true, "max_rows": 100})';
CREATE FUNCTION example_address.set_updated_at() RETURNS trigger
LANGUAGE plpgsql AS $$
BEGIN
NEW.updated_at := now();
RETURN NEW;
END
$$;