create table segment_ratings ( id uuid not null, segment_id uuid not null, user_id uuid not null, traffic_rating integer not null, surface_rating integer not null, surface_type text references surface_types not null, path_type text references path_types not null, created_at timestamptz not null, updated_at timestamptz not null, deleted_at timestamptz ); comment on table segment_ratings is ' A rating that is supplied with the segment ';