{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/equipment_identity/equipment_position_revision.schema.json","title":"equipment_position_revision","type":"object","properties":{"revision_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"equipment_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"lifecycle_stage_at":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"review_state_at":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"snapshot_jsonb":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"snapshotted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"snapshotted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"revision_seq":{"type":"integer","x-pg-type":"int4"},"reviewable_snapshot":{"x-pg-type":"jsonb"},"lifecycle_stage":{"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"},"review_state":{"type":"string","x-pg-type":"text"},"row_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"captured_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["equipment_uid","revision_seq","reviewable_snapshot","lifecycle_stage"],"x-primary-key":["revision_id"],"x-foreign-keys":[{"column":"equipment_uid","references_table":"equipment_position","references_column":"equipment_uid","constraint":"equipment_position_revision_equipment_uid_fkey"}]}