{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/chemical_consumption_item_audit.schema.json","title":"chemical_consumption_item_audit","type":"object","properties":{"audit_id":{"type":"integer","x-pg-type":"int8"},"consumption_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"field_name":{"type":"string","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"}},"x-table-schema":"public","required":["consumption_id","field_name"],"x-primary-key":["audit_id"],"x-foreign-keys":[{"column":"consumption_id","references_table":"chemical_consumption_item","references_column":"consumption_id","constraint":"chemical_consumption_item_audit_consumption_id_fkey"}]}