用户管理模块相关sql
This commit is contained in:
5
src/main/resources/sql/20181120/add_data_dict.sql
Normal file
5
src/main/resources/sql/20181120/add_data_dict.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
#用户管理字典信息
|
||||
INSERT INTO `sys_data_dictionary_name` (`id`, `module_name`, `mark`, `remark`, `revision`, `create_time`, `modify_time`, `status`) VALUES ('145', '用户管理', 'USER_TYPE', '', 'user:管理员,2018-11-28 09:48:13edit|user:管理员,2018-11-27 17:50:11edit', '2018-11-27 17:38:36', '2018-11-28 09:48:13', '1');
|
||||
|
||||
INSERT INTO `sys_data_dictionary_item` (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) VALUES ('3146', '0', 'VPN', '', '0', '1', '1', '145');
|
||||
INSERT INTO `sys_data_dictionary_item` (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) VALUES ('3147', '1', 'SIP', '', '0', '1', '1', '145');
|
||||
2
src/main/resources/sql/20181120/add_region_dict.sql
Normal file
2
src/main/resources/sql/20181120/add_region_dict.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
#增加服务器IP配置
|
||||
INSERT INTO `function_region_dict` (`dict_id`, `function_id`, `config_district`, `config_region_code`, `config_region_value`, `config_desc`, `is_valid`, `is_maat`, `region_type`, `creator_id`, `create_time`, `editor_id`, `edit_time`, `config_service_type`, `config_expr_type`, `config_match_method`, `config_ip_type`, `config_hex`, `config_multi_keywords`, `config_ip_pattern`, `config_port_pattern`, `config_direction`, `config_protocol`, `config_ip_port_show`, `config_region_sort`, `is_import`) VALUES ('606', '636', '', '1', 'NTC_SERVER_IP', 'VPN服务器 ip配置', '1', '1', '1', NULL, '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', '', '', '', '4', '', '', '3', '1', '0', '0', '3', '1', '1');
|
||||
22
src/main/resources/sql/20181120/add_user_manage.sql
Normal file
22
src/main/resources/sql/20181120/add_user_manage.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
#用户管理表
|
||||
DROP TABLE IF EXISTS `user_manage`;
|
||||
CREATE TABLE `user_manage` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`user_name` varchar(255) NOT NULL,
|
||||
`user_pwd` varchar(255) NOT NULL,
|
||||
`server_ip` varchar(1000) NOT NULL,
|
||||
`user_type` varchar(50) DEFAULT NULL,
|
||||
`is_valid` int(11) NOT NULL COMMENT '0无效,1有效,-1删除\r\n',
|
||||
`is_audit` int(11) NOT NULL COMMENT '0未审核,1审核通过,2审核未通过,3取消审核通过\r\n1) 审核未通过,配置可修改\r\n2) 审核通过,配置不可删除,只能取消审核通过',
|
||||
`creator_id` int(11) NOT NULL COMMENT '取自sys_user.id',
|
||||
`create_time` datetime NOT NULL,
|
||||
`editor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
|
||||
`edit_time` datetime DEFAULT NULL,
|
||||
`remarks` varchar(255) DEFAULT '' COMMENT '描述信息',
|
||||
`user_region1` varchar(1024) DEFAULT '' COMMENT '预留自定义域1',
|
||||
`user_region2` varchar(1024) DEFAULT '' COMMENT '预留自定义域2',
|
||||
`user_region3` varchar(1024) DEFAULT '' COMMENT '预留自定义域3',
|
||||
`user_region4` varchar(1024) DEFAULT '' COMMENT '预留自定义域4',
|
||||
`user_region5` varchar(1024) DEFAULT '' COMMENT '预留自定义域5',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;
|
||||
46
src/main/resources/sql/20181120/create_user_ip_cfg.sql
Normal file
46
src/main/resources/sql/20181120/create_user_ip_cfg.sql
Normal file
@@ -0,0 +1,46 @@
|
||||
#用户管理服务器IP表
|
||||
DROP TABLE IF EXISTS `ip_reuse_ip_cfg`;
|
||||
CREATE TABLE `ip_reuse_ip_cfg` (
|
||||
`cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增',
|
||||
`cfg_desc` varchar(128) DEFAULT NULL,
|
||||
`ip_type` int(11) NOT NULL COMMENT 'IPV4=4,IPV6=6',
|
||||
`direction` int(11) NOT NULL COMMENT '0双向,1单向,默认缺省为双向。',
|
||||
`protocol` int(11) NOT NULL COMMENT '6表示tcp,17表示udp,0表示任意',
|
||||
`protocol_id` int(11) NOT NULL COMMENT '非0时,maat规范需写入通用IP配置表与通用协议类型配置表 此表固定写0',
|
||||
`action` int(11) NOT NULL COMMENT '1:阻断,2:监测, 5: FD 白名单,6:监测白名单,7: FD 监测都白名单,应与业务ID所代表的逻辑相匹配,8-灰名单',
|
||||
`is_valid` int(11) NOT NULL COMMENT '0无效,1有效,-1删除\r\n1) 未审核时配置可删除\r\n2) 审核通过,此字段置1\r\n3) 取消审核通过,此字段置0',
|
||||
`is_audit` int(11) NOT NULL COMMENT '0未审核,1审核通过,2审核未通过,3取消审核通过\r\n1) 审核未通过,配置可修改\r\n2) 审核通过,配置不可删除,只能取消审核通过',
|
||||
`creator_id` int(11) NOT NULL COMMENT '取自sys_user.id',
|
||||
`create_time` datetime NOT NULL,
|
||||
`editor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
|
||||
`edit_time` datetime DEFAULT NULL,
|
||||
`auditor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
|
||||
`audit_time` datetime DEFAULT NULL,
|
||||
`service_id` int(11) NOT NULL COMMENT '参考系统业务类型管理表',
|
||||
`request_id` int(11) NOT NULL COMMENT '取自request_info.id',
|
||||
`compile_id` int(11) NOT NULL COMMENT '取自服务接口返回的maat配置的编译id,配置初始入库时获取。',
|
||||
`is_area_effective` int(11) NOT NULL COMMENT '0否,1是',
|
||||
`classify` varchar(128) DEFAULT NULL COMMENT '分类id,多个用英文逗号分隔',
|
||||
`attribute` varchar(128) DEFAULT NULL COMMENT '性质id,多个用英文逗号分隔',
|
||||
`lable` varchar(128) DEFAULT NULL COMMENT '标签id,多个用英文逗号分隔',
|
||||
`area_effective_ids` varchar(1024) DEFAULT NULL COMMENT '多个英文逗号分隔',
|
||||
`function_id` int(11) NOT NULL,
|
||||
`cfg_region_code` int(11) DEFAULT NULL,
|
||||
`cfg_type` varchar(64) DEFAULT NULL,
|
||||
`ip_pattern` int(11) NOT NULL,
|
||||
`src_ip_address` varchar(128) NOT NULL,
|
||||
`port_pattern` int(11) NOT NULL,
|
||||
`src_port` varchar(16) NOT NULL,
|
||||
`dest_ip_address` varchar(128) NOT NULL,
|
||||
`dest_port` varchar(16) NOT NULL,
|
||||
`ratelimit` varchar(10) DEFAULT NULL COMMENT '限速比例,0到1之间',
|
||||
`dns_strategy_id` int(11) DEFAULT NULL COMMENT 'DNS IP配置使用,来自dns_ res_strategy表的cfg_id,界面可缺省为0',
|
||||
`IR_TYPE` int(11) DEFAULT NULL COMMENT 'IP复用专用,0:SNAT(IP复用业务),1:DNAT(对外虚拟服务)',
|
||||
`user_region1` varchar(1024) DEFAULT NULL COMMENT '预留自定义域1',
|
||||
`user_region2` varchar(1024) DEFAULT NULL COMMENT '预留自定义域2',
|
||||
`user_region3` varchar(1024) DEFAULT NULL COMMENT '预留自定义域3',
|
||||
`user_region4` varchar(1024) DEFAULT NULL COMMENT '预留自定义域4',
|
||||
`user_region5` varchar(1024) DEFAULT NULL COMMENT '预留自定义域5',
|
||||
`cancel_request_id` int(11) DEFAULT NULL COMMENT '取消审核来函',
|
||||
PRIMARY KEY (`cfg_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=415583 DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user