{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/electrical_load_schedule.schema.json","title":"electrical_load_schedule","type":"object","properties":{"load_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"equipment_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"process_unit_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"load_kind":{"type":"string","x-pg-type":"text"},"mcc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"feeder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"rated_kw":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"running_kw":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"demand_kw":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"hours_per_day":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"load_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"diversity_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"spec_jsonb":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"lifecycle_stage":{"type":"string","x-pg-type":"text"},"review_state":{"type":"string","enum":["proposed"],"x-pg-type":"text"},"reviewed_by":{"anyOf":[{"type":"string","enum":["proposed"]},{"type":"null"}],"x-pg-type":"text"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"review_reason":{"anyOf":[{"type":"string","enum":["proposed"]},{"type":"null"}],"x-pg-type":"text"},"is_current":{"type":"boolean","x-pg-type":"bool"},"superseded_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"row_hash":{"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"},"bkw_calc":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"bkw_realistic":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"calc_basis_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"provenance":{"type":"string","x-pg-type":"text"}},"x-table-schema":"public","required":["project_ref","load_kind","provenance"],"x-primary-key":["load_id"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"electrical_load_schedule_project_ref_fkey"},{"column":"superseded_by","references_table":"electrical_load_schedule","references_column":"load_id","constraint":"electrical_load_schedule_superseded_by_fkey"}]}