{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/compliance_mcp/sample_event.schema.json","title":"sample_event","type":"object","properties":{"sample_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"compliance_point_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"sample_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"sample_location":{"type":"string","x-pg-type":"text"},"sample_datetime":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"collector":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"preservation_method":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"container_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"hold_time_limit_h":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"field_ph":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"field_temperature_c":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"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","sample_location","sample_datetime"],"x-primary-key":["sample_id"],"x-foreign-keys":[{"column":"compliance_point_id","references_table":"compliance_point","references_column":"compliance_point_id","constraint":"sample_event_compliance_point_id_fkey"},{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"sample_event_project_ref_fkey"}]}