{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/process_segment_definition.schema.json","title":"process_segment_definition","type":"object","properties":{"segment_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"segment_id":{"type":"string","x-pg-type":"text"},"segment_name":{"type":"string","x-pg-type":"text"},"segment_type":{"type":"string","x-pg-type":"text"},"operations_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"operations_definition_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"operations_segment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"dependent_segment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"dependency_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"work_master_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"hierarchy_scope":{"x-pg-type":"jsonb"},"segment_parameters":{"x-pg-type":"jsonb"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"version":{"type":"string","x-pg-type":"text"},"published_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"created_by":{"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":"public","required":["project_ref","segment_id","segment_name","segment_type"],"x-primary-key":["segment_uid"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"process_segment_definition_project_ref_fkey"}]}