mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
- 新增ISV用户平台
- 新增门户网站(portal) - 新增`C++`,`Rust`语言SDK
This commit is contained in:
30
sop.sql
30
sop.sql
@@ -21,6 +21,8 @@ DROP TABLE IF EXISTS `config_common`;
|
||||
DROP TABLE IF EXISTS `admin_user_info`;
|
||||
DROP TABLE IF EXISTS `monitor_info`;
|
||||
DROP TABLE IF EXISTS `monitor_info_error`;
|
||||
DROP TABLE IF EXISTS `user_account`;
|
||||
DROP TABLE IF EXISTS `isp_resource`;
|
||||
|
||||
|
||||
CREATE TABLE `admin_user_info` (
|
||||
@@ -250,6 +252,34 @@ CREATE TABLE `monitor_info_error` (
|
||||
KEY `idx_routeid` (`route_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `isv_info` ADD COLUMN `user_id` BIGINT NULL DEFAULT 0 COMMENT 'user_account.id' AFTER `remark`;
|
||||
|
||||
CREATE INDEX `idx_userid` USING BTREE ON `isv_info` (`user_id`);
|
||||
|
||||
CREATE TABLE `user_account` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`username` varchar(128) NOT NULL DEFAULT '' COMMENT '用户名(邮箱)',
|
||||
`password` varchar(128) NOT NULL DEFAULT '' COMMENT '密码',
|
||||
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '2:邮箱未验证,1:启用,0:禁用',
|
||||
`gmt_create` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||
`gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_username` (`username`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户信息';
|
||||
|
||||
CREATE TABLE `isp_resource` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(64) NOT NULL DEFAULT '' COMMENT '资源名称',
|
||||
`content` varchar(128) NOT NULL DEFAULT '' COMMENT '资源内容(URL)',
|
||||
`ext_content` text,
|
||||
`version` varchar(32) NOT NULL DEFAULT '' COMMENT '版本',
|
||||
`type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '资源类型:0:SDK链接',
|
||||
`is_deleted` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`gmt_create` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||
`gmt_modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ISP资源表';
|
||||
|
||||
INSERT INTO `admin_user_info` (`id`, `username`, `password`, `status`, `gmt_create`, `gmt_modified`) VALUES
|
||||
(1,'admin','a62cd510fb9a8a557a27ef279569091f',1,'2019-04-02 19:55:26','2019-04-02 19:55:26');
|
||||
|
||||
|
Reference in New Issue
Block a user