{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/contractor_management/contract.schema.json","title":"contract","type":"object","properties":{"contract_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"openproject_wp_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"contract_type":{"type":"string","x-pg-type":"text"},"counterparty_name":{"type":"string","x-pg-type":"text"},"counterparty_vendor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"original_value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"revised_value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"gmp_amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"shared_savings_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"owner_contingency_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"effective_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"x-pg-type":"date"},"expiration_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"x-pg-type":"date"},"retainage_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"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"}},"x-table-schema":"public","required":["project_ref","contract_type","counterparty_name"],"x-primary-key":["contract_id"]}