更换用户和商铺id为雪花id

This commit is contained in:
xiaowang
2026-03-04 15:54:48 +08:00
parent b9811b1090
commit bea4b63e3e
4 changed files with 20 additions and 28 deletions
@@ -190,7 +190,7 @@ create index idx_title
-- 店铺信息表
create table t_shop
(
id bigint unsigned auto_increment comment '店铺唯一主键ID'
id bigint unsigned comment '店铺唯一主键ID(雪花ID)'
primary key comment '店铺主键索引',
shop_name varchar(100) not null comment '店铺名称',
description text null comment '店铺描述',
@@ -230,7 +230,7 @@ create table t_tag
-- 系统用户信息表
create table t_user
(
id bigint unsigned auto_increment comment '用户唯一主键ID(雪花ID)'
id bigint unsigned comment '用户唯一主键ID(雪花ID)'
primary key comment '用户主键索引',
shop_id bigint unsigned default 0 null comment '所属店铺ID,关联店铺表主键(0表示无所属店铺)',
nickname varchar(50) not null comment '用户昵称',