diff --git a/sql/20210623-sheng-userdata.sql b/sql/20210623-sheng-userdata.sql index 916693b6c..68805b1be 100644 --- a/sql/20210623-sheng-userdata.sql +++ b/sql/20210623-sheng-userdata.sql @@ -4,3 +4,18 @@ MODIFY COLUMN `role` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NUL MODIFY COLUMN `end_time` datetime NOT NULL DEFAULT now() ON UPDATE CURRENT_TIMESTAMP COMMENT '结束时间' AFTER `role`, MODIFY COLUMN `duration` int(11) NOT NULL COMMENT '有效时长' AFTER `end_time`, ADD COLUMN `start_time` datetime NOT NULL DEFAULT now() ON UPDATE CURRENT_TIMESTAMP COMMENT '开始时间' AFTER `role`; + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for sys_third_account_config +-- ---------------------------- +DROP TABLE IF EXISTS `sys_third_account_config`; +CREATE TABLE `sys_third_account_config` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `account` varchar(32) NOT NULL COMMENT '第三方账户账号', + `interface_config` text COMMENT '接口信息配置', + `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', + `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;