{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/vendor.schema.json","title":"vendor","type":"object","properties":{"id":{"type":"integer","x-pg-type":"int4"},"name":{"type":"string","x-pg-type":"text"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"equipment_types":{"type":"array","items":{"type":"string"},"x-pg-type":"_text"},"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int2"},"active":{"type":"boolean","x-pg-type":"bool"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"vendor_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"is_approved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"x-pg-type":"bool"},"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"},"row_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"review_state":{"type":"string","x-pg-type":"text"}},"x-table-schema":"public","required":["name"],"x-primary-key":["id"]}