{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/guarantee_comparison.schema.json","title":"guarantee_comparison","type":"object","properties":{"comparison_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"equipment_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"guarantee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"metric":{"type":"string","x-pg-type":"text"},"guaranteed_value":{"type":"number","x-pg-type":"float8"},"actual_value":{"type":"number","x-pg-type":"float8"},"pct_of_guarantee":{"type":"number","x-pg-type":"float8"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"period_start":{"type":"string","format":"date","x-pg-type":"date"},"period_end":{"type":"string","format":"date","x-pg-type":"date"},"within_guarantee":{"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":["equipment_uid","metric","guaranteed_value","actual_value","pct_of_guarantee","period_start","period_end","within_guarantee"],"x-primary-key":["comparison_id"]}