{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_controls/project_controls.tie_in.schema.json","title":"project_controls.tie_in","type":"object","properties":{"tie_in_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"tie_in_seq":{"type":"integer","x-pg-type":"int2"},"project_ref":{"type":"string","x-pg-type":"text"},"plant_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"lifecycle_stage":{"type":"string","x-pg-type":"text"},"service_description":{"type":"string","x-pg-type":"text"},"source_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"destination_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"external_or_internal":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"battery_limit_designation":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"pipe_size":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"pipe_material":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"design_pressure_kpa":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"design_temperature_c":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"flow_rate_value":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"flow_rate_units":{"anyOf":[{"type":"string"},{"type":"null"}],"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"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"project_controls","required":["tie_in_seq","project_ref","lifecycle_stage","service_description"],"x-primary-key":["tie_in_id"]}