功能:改造Salon小程序OpenID快捷登录
This commit is contained in:
@@ -597,7 +597,7 @@ create table t_user
|
||||
primary key comment '用户主键索引',
|
||||
shop_id bigint unsigned default 0 null comment '所属店铺ID,关联店铺表主键(0表示无所属店铺)',
|
||||
nickname varchar(50) not null comment '用户昵称',
|
||||
account varchar(50) not null comment '用户账号(登录用)',
|
||||
account varchar(50) null comment '用户账号(登录用,微信快捷登录用户可为空)',
|
||||
phone varchar(50) null comment '手机号',
|
||||
contact_phone varchar(50) null comment '联系电话',
|
||||
birthday date null comment '生日',
|
||||
@@ -606,7 +606,7 @@ create table t_user
|
||||
email varchar(100) null comment '邮箱',
|
||||
phone_verified tinyint unsigned default 0 null comment '手机号是否已验证:0-未验证,1-已验证',
|
||||
email_verified tinyint unsigned default 0 null comment '邮箱是否已验证:0-未验证,1-已验证',
|
||||
password varchar(100) not null comment '用户密码(加密存储)',
|
||||
password varchar(100) null comment '用户密码(加密存储,微信快捷登录用户可为空)',
|
||||
signature varchar(200) default '' null comment '用户签名',
|
||||
level varchar(20) default '普通' null comment '用户等级',
|
||||
type tinyint not null comment '用户类型,(0-用户,2-店长,3-美甲师,4-管理员)',
|
||||
@@ -617,7 +617,9 @@ create table t_user
|
||||
status tinyint unsigned default 1 null comment '用户状态:1-正常,0-禁用',
|
||||
avatar varchar(512) null comment '头像链接',
|
||||
constraint uk_account
|
||||
unique (account) comment '用户账号唯一索引'
|
||||
unique (account) comment '用户账号唯一索引',
|
||||
constraint uk_user_phone
|
||||
unique (phone) comment '用户手机号唯一索引(允许多行NULL)'
|
||||
)
|
||||
comment '系统用户信息表';
|
||||
|
||||
@@ -625,10 +627,6 @@ create index idx_email
|
||||
on t_user (email)
|
||||
comment '按邮箱查询的索引';
|
||||
|
||||
create index idx_phone
|
||||
on t_user (phone)
|
||||
comment '按手机号查询的索引';
|
||||
|
||||
create index idx_shop_id
|
||||
on t_user (shop_id)
|
||||
comment '按店铺查询用户的索引';
|
||||
|
||||
Reference in New Issue
Block a user