功能:新增微信小程序一键登录

This commit is contained in:
xiaowang
2026-04-02 13:20:28 +08:00
parent 8ac7deffca
commit 4f5ef4fedd
32 changed files with 1899 additions and 65 deletions
@@ -193,6 +193,29 @@ create index idx_user_id
on t_login_identity (user_id)
comment '按用户查询登录标识的索引';
-- auto-generated definition
create table t_wechat_mini_binding
(
id bigint unsigned auto_increment comment '微信小程序绑定主键ID(雪花ID)'
primary key,
user_id bigint unsigned not null comment '关联用户ID',
app_id varchar(64) not null comment '微信小程序appId',
openid varchar(100) not null comment '微信小程序openid',
unionid varchar(100) null comment '微信开放平台unionid',
status tinyint unsigned default 1 null comment '状态:1-有效,0-失效',
create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间',
update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
constraint uk_wechat_mini_app_openid
unique (app_id, openid),
constraint uk_wechat_mini_app_user
unique (app_id, user_id)
)
comment '微信小程序账号绑定表';
create index idx_wechat_mini_unionid
on t_wechat_mini_binding (unionid)
comment '按unionid查询的索引';
-- auto-generated definition
create table t_nail_artist_info
(
@@ -1327,6 +1350,7 @@ CALL sp_drop_auto_increment_on_id_if_exists('t_coupon');
CALL sp_drop_auto_increment_on_id_if_exists('t_coupon_tag');
CALL sp_drop_auto_increment_on_id_if_exists('t_effect_diagram');
CALL sp_drop_auto_increment_on_id_if_exists('t_login_identity');
CALL sp_drop_auto_increment_on_id_if_exists('t_wechat_mini_binding');
CALL sp_drop_auto_increment_on_id_if_exists('t_nail_artist_info');
CALL sp_drop_auto_increment_on_id_if_exists('t_object_storage_file');
CALL sp_drop_auto_increment_on_id_if_exists('t_order');