{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/control_valve_spec_audit.schema.json","title":"control_valve_spec_audit","type":"object","properties":{"legacy_audit_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int8"},"spec_id":{"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":"spec_id","references_table":"control_valve_spec","references_column":"spec_id","constraint":"control_valve_spec_audit_spec_id_fkey"}]}