{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/datasheet_revision.schema.json","title":"datasheet_revision","type":"object","properties":{"revision_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"datasheet_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"revision":{"type":"string","x-pg-type":"text"},"revision_stage":{"type":"string","x-pg-type":"text"},"datasheet_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"revision_jsonb":{"x-pg-type":"jsonb"},"change_description":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["datasheet_id","revision","revision_stage","revision_jsonb"],"x-primary-key":["revision_id"],"x-foreign-keys":[{"column":"datasheet_id","references_table":"process_datasheet","references_column":"datasheet_id","constraint":"datasheet_revision_datasheet_id_fkey"}]}