{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/quality_test_measurement.schema.json","title":"quality_test_measurement","type":"object","properties":{"measurement_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"test_record_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"sequence_no":{"type":"integer","x-pg-type":"int4"},"parameter_name":{"type":"string","x-pg-type":"text"},"criterion_operator":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"target_value_num":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"lower_limit_num":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"upper_limit_num":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"target_value_text":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"measured_value_num":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"measured_value_text":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"result_status":{"type":"string","x-pg-type":"text"}},"x-table-schema":"public","required":["test_record_id","sequence_no","parameter_name","result_status"],"x-primary-key":["measurement_id"],"x-foreign-keys":[{"column":"test_record_id","references_table":"quality_test_record","references_column":"test_record_id","constraint":"quality_test_measurement_test_record_id_fkey"}]}