{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/control_valve_spec.schema.json","title":"control_valve_spec","type":"object","properties":{"spec_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"},"valve_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"size_nominal":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"pressure_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"end_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"material_body":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"material_trim":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"material_seat":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"material_packing":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"sizing_cases":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"cv_selected":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"kv_selected":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"rangeability":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"characteristic":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"leakage_class":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"actuator_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"actuator_action":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"actuator_size":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"fail_position":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"air_supply_kpa":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"bench_range_kpa_low":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"bench_range_kpa_high":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"positioner_mfr":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"positioner_model":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"signal_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"limit_switches":{"anyOf":[{"type":"boolean"},{"type":"null"}],"x-pg-type":"bool"},"solenoid_valve":{"anyOf":[{"type":"boolean"},{"type":"null"}],"x-pg-type":"bool"},"handwheel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"x-pg-type":"bool"},"face_to_face_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"closeoff_dp_kpa":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"sil_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"fire_safe":{"anyOf":[{"type":"boolean"},{"type":"null"}],"x-pg-type":"bool"},"fugitive_emission":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"specs_jsonb":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"lifecycle_stage":{"type":"string","x-pg-type":"text"},"review_state":{"type":"string","x-pg-type":"text"},"reviewed_by":{"anyOf":[{"type":"string"},{"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"},{"type":"null"}],"x-pg-type":"text"},"row_hash":{"anyOf":[{"type":"string"},{"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"},"provenance":{"type":"string","x-pg-type":"text"}},"x-table-schema":"public","required":["equipment_uid","project_ref","provenance"],"x-primary-key":["spec_id"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"control_valve_spec_project_ref_fkey"},{"column":"superseded_by","references_table":"control_valve_spec","references_column":"spec_id","constraint":"control_valve_spec_superseded_by_fkey"}]}