feat(db): add sys_user service-account WeChat bind columns
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
283b8cd1e3
commit
119882953a
2 files changed
+16
No files matched your search
@@ -0,0 +1,13 @@
|
||||
-- 员工微信服务号 openid / unionid 绑定字段(OA 审批通知)
|
||||
-- MySQL 5.7:唯一索引允许多个 NULL
|
||||
|
||||
ALTER TABLE `sys_user`
|
||||
ADD COLUMN `wx_mp_openid` varchar(64) DEFAULT NULL COMMENT '微信服务号 openid' AFTER `wx_openid`,
|
||||
ADD COLUMN `wx_unionid` varchar(64) DEFAULT NULL COMMENT '微信开放平台 unionid' AFTER `wx_mp_openid`,
|
||||
ADD COLUMN `wx_mp_bind_time` datetime DEFAULT NULL COMMENT '服务号绑定时间' AFTER `wx_unionid`;
|
||||
|
||||
ALTER TABLE `sys_user`
|
||||
ADD UNIQUE INDEX `uk_sys_user_wx_mp_openid` (`wx_mp_openid`);
|
||||
|
||||
ALTER TABLE `sys_user`
|
||||
ADD INDEX `idx_sys_user_wx_unionid` (`wx_unionid`);
|
||||
Reference in new issue
Block a user