{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/pid_sheet.schema.json","title":"pid_sheet","type":"object","properties":{"sheet_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"contract_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"sheet_key":{"type":"string","x-pg-type":"text"},"sheet_number":{"type":"integer","x-pg-type":"int4"},"sheet_name":{"type":"string","x-pg-type":"text"},"template_family":{"type":"string","x-pg-type":"text"},"template_version":{"type":"string","x-pg-type":"text"},"compile_status":{"type":"string","x-pg-type":"text"},"sheet_manifest":{"x-pg-type":"jsonb"},"dexpi_model_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"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":["contract_id","sheet_key","sheet_number","sheet_name","template_family","template_version"],"x-primary-key":["sheet_id"],"x-foreign-keys":[{"column":"contract_id","references_table":"pfd_unit_contract","references_column":"contract_id","constraint":"pid_sheet_contract_id_fkey"},{"column":"dexpi_model_id","references_table":"models","references_column":"model_id","constraint":"pid_sheet_dexpi_model_id_fkey"}]}