{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/compliance_mcp/qa_qc_observation.schema.json","title":"qa_qc_observation","type":"object","properties":{"observation_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"batch_id":{"type":"string","x-pg-type":"text"},"qc_type":{"type":"string","x-pg-type":"text"},"parameter":{"type":"string","x-pg-type":"text"},"method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"recovery_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"rpd_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"acceptance_range_low":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"acceptance_range_high":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"passed":{"type":"boolean","x-pg-type":"bool"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"sample_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"}},"x-table-schema":"public","required":["batch_id","qc_type","parameter"],"x-primary-key":["observation_id"],"x-foreign-keys":[{"column":"method_id","references_table":"analytical_method","references_column":"method_id","constraint":"qa_qc_observation_method_id_fkey"},{"column":"sample_id","references_table":"sample_event","references_column":"sample_id","constraint":"qa_qc_observation_sample_id_fkey"}]}