{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/equipment_identity/equipment_position_audit.schema.json","title":"equipment_position_audit","type":"object","properties":{"legacy_audit_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int8"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"field_name":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"old_value":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"new_value":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"changed_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"audit_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"op":{"type":"string","x-pg-type":"text"},"before_jsonb":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"after_jsonb":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"row_pk_jsonb":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"}},"x-table-schema":"public","required":["op"],"x-primary-key":["audit_id"],"x-foreign-keys":[{"column":"equipment_uid","references_table":"equipment_position","references_column":"equipment_uid","constraint":"equipment_position_audit_equipment_uid_fkey"}]}