{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/interlock_definition.schema.json","title":"interlock_definition","type":"object","properties":{"interlock_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"interlock_id":{"type":"string","x-pg-type":"text"},"segment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"interlock_type":{"type":"string","x-pg-type":"text"},"sil_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"reset_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"bypass_allowed":{"type":"boolean","x-pg-type":"bool"},"max_bypass_duration_h":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"trigger_area_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"action_area_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"x-pg-type":"int4"},"cause_effect_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"published_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["project_ref","interlock_id","interlock_type"],"x-primary-key":["interlock_uid"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"interlock_definition_project_ref_fkey"},{"column":"segment_uid","references_table":"process_segment_definition","references_column":"segment_uid","constraint":"interlock_definition_segment_uid_fkey"}]}