{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/control_performance_snapshot.schema.json","title":"control_performance_snapshot","type":"object","properties":{"snapshot_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"loop_id":{"type":"string","x-pg-type":"text"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"snapshot_datetime":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"setpoint":{"type":"number","x-pg-type":"float8"},"process_variable":{"type":"number","x-pg-type":"float8"},"output_pct":{"type":"number","x-pg-type":"float8"},"mode":{"type":"string","x-pg-type":"text"},"units":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"engineering_unit"},"error":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"iae_score":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"oscillation_flag":{"type":"boolean","x-pg-type":"bool"},"saturation_flag":{"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"}},"x-table-schema":"public","required":["project_ref","loop_id","snapshot_datetime","setpoint","process_variable","output_pct","mode"],"x-primary-key":["snapshot_id"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"control_performance_snapshot_project_ref_fkey"}]}