-- 用户收藏地址:显式区分“站点收藏”和“场站收藏” -- 1. item_type: 1=站点 2=场站 -- 2. station_id: 场站收藏时保留场站关系,避免后续查询再从 point_id 反推 alter table xp_app_user_collect_addr add column item_type tinyint not null default 1 comment '收藏对象类型 1=站点 2=场站' after latitude, add column station_id bigint null comment '场站id,站点收藏时为空' after point_id; create index idx_app_user_collect_addr_item_type on xp_app_user_collect_addr (item_type); create index idx_app_user_collect_addr_station_id on xp_app_user_collect_addr (station_id);