{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/compliance_mcp/custody_transfer.schema.json","title":"custody_transfer","type":"object","properties":{"transfer_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"sample_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"from_party":{"type":"string","x-pg-type":"text"},"to_party":{"type":"string","x-pg-type":"text"},"transfer_datetime":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"condition_on_receipt":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"seal_intact":{"anyOf":[{"type":"boolean"},{"type":"null"}],"x-pg-type":"bool"},"temperature_on_receipt_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":["sample_id","from_party","to_party","transfer_datetime"],"x-primary-key":["transfer_id"],"x-foreign-keys":[{"column":"sample_id","references_table":"sample_event","references_column":"sample_id","constraint":"custody_transfer_sample_id_fkey"}]}