{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/quality_test_record.schema.json","title":"quality_test_record","type":"object","properties":{"test_record_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"openproject_wp_id":{"type":"integer","x-pg-type":"int4"},"source_system":{"type":"string","x-pg-type":"text"},"source_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"test_domain":{"type":"string","x-pg-type":"text"},"test_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"test_category":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"overall_result":{"type":"string","x-pg-type":"text"},"performed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"performed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"witness_names":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"x-pg-type":"_text"},"specification_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"guarantee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"evidence_refs":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"x-pg-type":"_text"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["project_ref","openproject_wp_id","source_system","test_domain","overall_result"],"x-primary-key":["test_record_id"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"quality_test_record_project_ref_fkey"}]}