14 lines
373 B
PL/PgSQL
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
|
|
$$;
|