{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/reliability_kpi_snapshot.schema.json","title":"reliability_kpi_snapshot","type":"object","properties":{"snapshot_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"equipment_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"period_start":{"type":"string","format":"date","x-pg-type":"date"},"period_end":{"type":"string","format":"date","x-pg-type":"date"},"mtbf_h":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"mttr_h":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"availability_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"failure_count":{"type":"integer","x-pg-type":"int4"},"pm_compliance_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"total_maintenance_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"energy_kwh_per_m3":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"chemical_kg_per_m3":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"computed_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["equipment_uid","project_ref","period_start","period_end"],"x-primary-key":["snapshot_id"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"reliability_kpi_snapshot_project_ref_fkey"}]}