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