{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_controls/project_controls.open_item.schema.json","title":"project_controls.open_item","type":"object","properties":{"open_item_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"plant_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"item_seq":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"parent_open_item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"source_phase":{"type":"string","x-pg-type":"text"},"source_artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"source_ref":{"x-pg-type":"jsonb"},"title":{"type":"string","x-pg-type":"text"},"action_required":{"type":"string","x-pg-type":"text"},"owner_org":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"owner_role":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"x-pg-type":"_text"},"severity":{"type":"string","x-pg-type":"text"},"status":{"type":"string","x-pg-type":"text"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"response_ref":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"closure_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"review_state":{"type":"string","x-pg-type":"text"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"review_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"row_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"project_controls","required":["project_ref","source_phase","title","action_required","severity"],"x-primary-key":["open_item_id"],"x-foreign-keys":[{"column":"parent_open_item_id","references_table":"project_controls.open_item","references_column":"open_item_id","constraint":"open_item_parent_open_item_id_fkey"}]}