{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/failure_event.schema.json","title":"failure_event","type":"object","properties":{"event_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"equipment_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"failure_date":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"detected_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"downtime_h":{"type":"number","x-pg-type":"float8"},"failure_mode":{"type":"string","x-pg-type":"text"},"failure_cause":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"failure_mechanism":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"cmms_work_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"corrective_action":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"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":["equipment_uid","failure_date","downtime_h","failure_mode"],"x-primary-key":["event_id"]}