{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/pfd_unit_contract.schema.json","title":"pfd_unit_contract","type":"object","properties":{"contract_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"assembly_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"source_bfd_block_id":{"type":"string","x-pg-type":"text"},"process_unit_type":{"type":"string","x-pg-type":"text"},"subarea_number":{"type":"integer","x-pg-type":"int4"},"tag_area":{"type":"integer","x-pg-type":"int4"},"template_family":{"type":"string","x-pg-type":"text"},"template_version":{"type":"string","x-pg-type":"text"},"sheeting_class":{"type":"string","x-pg-type":"text"},"train_count":{"type":"integer","x-pg-type":"int4"},"design_basis":{"x-pg-type":"jsonb"},"contract_payload":{"x-pg-type":"jsonb"},"compile_status":{"type":"string","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":["assembly_id","source_bfd_block_id","process_unit_type","subarea_number","tag_area","template_family","template_version","sheeting_class"],"x-primary-key":["contract_id"],"x-foreign-keys":[{"column":"assembly_id","references_table":"pfd_assembly","references_column":"assembly_id","constraint":"pfd_unit_contract_assembly_id_fkey"},{"column":"process_unit_type","references_table":"process_unit_type_registry","references_column":"process_unit_type","constraint":"pfd_unit_contract_process_unit_type_fkey"}]}