Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
ichunt-micro-geteway
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8e7325f3
authored
Dec 23, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
9469badd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
239 additions
and
99 deletions
micro_service.sql
perm_manager.sql
micro_service.sql
0 → 100644
View file @
8e7325f3
/*
Navicat MySQL Data Transfer
Source Server : lie_micro_service
Source Server Version : 50548
Source Host : 192.168.2.232:3306
Source Database : lie_micro_service
Target Server Type : MYSQL
Target Server Version : 50548
File Encoding : 65001
Date: 2020-12-23 15:24:32
*/
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for lie_admin
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_admin`
;
CREATE
TABLE
`lie_admin`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增id'
,
`user_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户名'
,
`salt`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'盐'
,
`password`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'密码'
,
`create_at`
datetime
NOT
NULL
DEFAULT
'1971-01-01 00:00:00'
COMMENT
'新增时间'
,
`update_at`
datetime
NOT
NULL
DEFAULT
'1971-01-01 00:00:00'
COMMENT
'更新时间'
,
`is_delete`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
utf8
COMMENT
=
'管理员表'
;
-- ----------------------------
-- Records of lie_admin
-- ----------------------------
INSERT
INTO
`lie_admin`
VALUES
(
'1'
,
'admin'
,
'admin'
,
'2823d896e9822c0833d41d4904f0c00756d718570fce49b9a379a62c804689d3'
,
'2020-04-10 16:42:05'
,
'2020-04-21 06:35:08'
,
'0'
);
-- ----------------------------
-- Table structure for lie_app
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_app`
;
CREATE
TABLE
`lie_app`
(
`id`
bigint
(
20
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增id'
,
`app_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'租户id'
,
`name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'租户名称'
,
`secret`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'密钥'
,
`white_ips`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'ip白名单,支持前缀匹配'
,
`qpd`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'日请求量限制'
,
`qps`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'每秒请求量限制'
,
`create_at`
datetime
NOT
NULL
COMMENT
'添加时间'
,
`update_at`
datetime
NOT
NULL
COMMENT
'更新时间'
,
`is_delete`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否删除 1=删除'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
35
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关租户表'
;
-- ----------------------------
-- Records of lie_app
-- ----------------------------
INSERT
INTO
`lie_app`
VALUES
(
'31'
,
'app_id_a'
,
'租户A'
,
'449441eb5e72dca9c42a12f3924ea3a2'
,
'white_ips'
,
'100000'
,
'100'
,
'2020-04-15 20:55:02'
,
'2020-04-21 07:23:34'
,
'0'
);
INSERT
INTO
`lie_app`
VALUES
(
'32'
,
'app_id_b'
,
'租户B'
,
'8d7b11ec9be0e59a36b52f32366c09cb'
,
''
,
'20'
,
'0'
,
'2020-04-15 21:40:52'
,
'2020-04-21 07:23:27'
,
'0'
);
INSERT
INTO
`lie_app`
VALUES
(
'33'
,
'app_id'
,
'租户名称'
,
''
,
''
,
'0'
,
'0'
,
'2020-04-15 22:02:23'
,
'2020-04-15 22:06:51'
,
'1'
);
INSERT
INTO
`lie_app`
VALUES
(
'34'
,
'app_id45'
,
'名称'
,
'07d980f8a49347523ee1d5c1c41aec02'
,
''
,
'0'
,
'0'
,
'2020-04-15 22:06:38'
,
'2020-04-15 22:06:49'
,
'1'
);
-- ----------------------------
-- Table structure for lie_service_access_control
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_service_access_control`
;
CREATE
TABLE
`lie_service_access_control`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`service_id`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'服务id'
,
`open_auth`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启权限 1=开启'
,
`black_list`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'黑名单ip'
,
`white_list`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'白名单ip'
,
`white_host_name`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
COMMENT
'白名单主机'
,
`clientip_flow_limit`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'客户端ip限流'
,
`service_flow_limit`
int
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'服务端限流'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
205
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关权限控制表'
;
-- ----------------------------
-- Records of lie_service_access_control
-- ----------------------------
INSERT
INTO
`lie_service_access_control`
VALUES
(
'190'
,
'62'
,
'0'
,
''
,
''
,
''
,
'1000000'
,
'20000000'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'193'
,
'68'
,
'0'
,
''
,
''
,
''
,
'30'
,
'30'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'194'
,
'69'
,
'0'
,
''
,
''
,
''
,
'302'
,
'302'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'195'
,
'70'
,
'0'
,
''
,
''
,
''
,
'10000'
,
'100000'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'196'
,
'71'
,
'0'
,
''
,
''
,
''
,
'10000'
,
'100000'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'197'
,
'72'
,
'0'
,
''
,
''
,
''
,
'111'
,
'111'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'198'
,
'73'
,
'0'
,
''
,
''
,
''
,
'30'
,
'30'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'199'
,
'74'
,
'0'
,
''
,
''
,
''
,
'30'
,
'30'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'200'
,
'75'
,
'0'
,
''
,
''
,
''
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'201'
,
'76'
,
'0'
,
''
,
''
,
''
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'202'
,
'77'
,
'0'
,
''
,
''
,
''
,
'10000'
,
'100000'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'203'
,
'78'
,
'0'
,
''
,
''
,
''
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_access_control`
VALUES
(
'204'
,
'79'
,
'0'
,
''
,
''
,
''
,
'0'
,
'0'
);
-- ----------------------------
-- Table structure for lie_service_grpc_rule
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_service_grpc_rule`
;
CREATE
TABLE
`lie_service_grpc_rule`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`service_id`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'服务id'
,
`port`
int
(
5
)
NOT
NULL
DEFAULT
'0'
COMMENT
'端口'
,
`header_transfor`
varchar
(
5000
)
NOT
NULL
DEFAULT
''
COMMENT
'header转换支持增加(add)、删除(del)、修改(edit) 格式: add headname headvalue 多个逗号间隔'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
174
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关路由匹配表'
;
-- ----------------------------
-- Records of lie_service_grpc_rule
-- ----------------------------
INSERT
INTO
`lie_service_grpc_rule`
VALUES
(
'171'
,
'53'
,
'8009'
,
''
);
INSERT
INTO
`lie_service_grpc_rule`
VALUES
(
'172'
,
'54'
,
'8002'
,
'add metadata1 datavalue,edit metadata2 datavalue2'
);
INSERT
INTO
`lie_service_grpc_rule`
VALUES
(
'173'
,
'58'
,
'8012'
,
'add meta_name meta_value'
);
-- ----------------------------
-- Table structure for lie_service_http_rule
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_service_http_rule`
;
CREATE
TABLE
`lie_service_http_rule`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`service_id`
bigint
(
20
)
NOT
NULL
COMMENT
'服务id'
,
`rule_type`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'匹配类型 0=url前缀url_prefix 1=域名domain '
,
`rule`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'type=domain表示域名,type=url_prefix时表示url前缀'
,
`need_https`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'支持https 1=支持'
,
`need_strip_uri`
tinyint
(
4
)
unsigned
NOT
NULL
DEFAULT
'1'
COMMENT
'启用strip_uri 1=启用'
,
`need_direct_forward`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'是否直接转发到外网地址不请求负载均衡 0 否 1 是'
,
`direct_forward_url`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'转发外网url'
,
`need_websocket`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否支持websocket 1=支持'
,
`url_rewrite`
varchar
(
5000
)
NOT
NULL
DEFAULT
''
COMMENT
'url重写功能 格式:^/gatekeeper/test_service(.*) $1 多个逗号间隔'
,
`header_transfor`
varchar
(
5000
)
NOT
NULL
DEFAULT
''
COMMENT
'header转换支持增加(add)、删除(del)、修改(edit) 格式: add headname headvalue 多个逗号间隔'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
195
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关路由匹配表'
;
-- ----------------------------
-- Records of lie_service_http_rule
-- ----------------------------
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'181'
,
'62'
,
'0'
,
'/comment_service'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
'^/test123/hehe /test'
,
'add headername headervalue,
\n
add xxxxxxxxxxxxx wwwwwwwww'
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'183'
,
'68'
,
'0'
,
'/sosuo/test'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
'^/test123/hehe /test'
,
'add headername headervalue'
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'184'
,
'69'
,
'1'
,
'http://api.liexin.com'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
'^/test123/hehe /test2'
,
'add headername headervalue2'
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'185'
,
'70'
,
'0'
,
'/crm/a'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'186'
,
'71'
,
'0'
,
'/aa'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'187'
,
'72'
,
'0'
,
'/aaa'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'188'
,
'73'
,
'0'
,
'/order/a/b'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
'^/test123/hehe /test'
,
'add headername headervalue'
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'189'
,
'74'
,
'0'
,
'/order/a/b'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
'^/test123/hehe /test'
,
'add headername headervalue'
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'190'
,
'75'
,
'0'
,
'/aaaaa'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'191'
,
'76'
,
'0'
,
'/aaaaa'
,
'0'
,
'1'
,
'0'
,
''
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'192'
,
'77'
,
'0'
,
'/dingding'
,
'0'
,
'1'
,
'1'
,
'https://oapi.dingtalk.com/robot/send/'
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'193'
,
'78'
,
'0'
,
'/xxx'
,
'0'
,
'1'
,
'1'
,
'xxxxxxx'
,
'0'
,
''
,
''
);
INSERT
INTO
`lie_service_http_rule`
VALUES
(
'194'
,
'79'
,
'0'
,
'/ichuntapi'
,
'0'
,
'1'
,
'1'
,
'http://szapi.ichunt.com'
,
'0'
,
''
,
''
);
-- ----------------------------
-- Table structure for lie_service_info
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_service_info`
;
CREATE
TABLE
`lie_service_info`
(
`id`
bigint
(
20
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`load_type`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'负载类型 0=http 1=tcp 2=grpc'
,
`service_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'服务名称 6-128 数字字母下划线'
,
`service_desc`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'服务描述'
,
`is_delete`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否删除 1=删除'
,
`create_time`
int
(
11
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`update_time`
int
(
11
)
unsigned
DEFAULT
'0'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
80
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关基本信息表'
;
-- ----------------------------
-- Records of lie_service_info
-- ----------------------------
INSERT
INTO
`lie_service_info`
VALUES
(
'62'
,
'0'
,
'comment_service'
,
'ichuntapi微服务http网关'
,
'0'
,
'1606118190'
,
'1606964267'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'68'
,
'0'
,
'sousuo'
,
'商品服务'
,
'1'
,
'1606118190'
,
'1606297402'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'69'
,
'0'
,
'ichuntapi'
,
'api服务'
,
'0'
,
'1606285091'
,
'1606297443'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'70'
,
'0'
,
'crm'
,
'crm服务'
,
'1'
,
'2020'
,
'2020'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'71'
,
'0'
,
'aa'
,
'qqqqq'
,
'1'
,
'1606276457'
,
'1606276457'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'72'
,
'0'
,
'aa'
,
'aaaa'
,
'1'
,
'1606276542'
,
'1606276657'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'73'
,
'0'
,
'order'
,
'订单服务'
,
'1'
,
'1606284911'
,
'1606284942'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'74'
,
'0'
,
'order'
,
'订单服务'
,
'1'
,
'1606284995'
,
'1606285001'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'75'
,
'0'
,
'aaaaa'
,
'aaaa'
,
'1'
,
'1606383726'
,
'1606383936'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'76'
,
'0'
,
'aaaaa'
,
'aaaa'
,
'1'
,
'1606383737'
,
'1606383939'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'77'
,
'0'
,
'dingding'
,
'钉钉服务转发'
,
'0'
,
'1606383751'
,
'1606730800'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'78'
,
'0'
,
'xxxx'
,
'xxxxx'
,
'1'
,
'1606724446'
,
'1606724454'
);
INSERT
INTO
`lie_service_info`
VALUES
(
'79'
,
'0'
,
'ichuntapi'
,
'ichuntapi测试'
,
'0'
,
'1606728771'
,
'1606729859'
);
-- ----------------------------
-- Table structure for lie_service_load_balance
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_service_load_balance`
;
CREATE
TABLE
`lie_service_load_balance`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`service_id`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'服务id'
,
`check_method`
tinyint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'检查方法 0=tcpchk,检测端口是否握手成功'
,
`check_timeout`
int
(
10
)
NOT
NULL
DEFAULT
'0'
COMMENT
'check超时时间,单位s'
,
`check_interval`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'检查间隔, 单位s'
,
`round_type`
tinyint
(
4
)
NOT
NULL
DEFAULT
'2'
COMMENT
'轮询方式 0=random 1=round-robin 2=weight_round-robin 3=ip_hash'
,
`ip_list`
varchar
(
2000
)
NOT
NULL
DEFAULT
''
COMMENT
'ip列表'
,
`weight_list`
varchar
(
2000
)
NOT
NULL
DEFAULT
''
COMMENT
'权重列表'
,
`forbid_list`
varchar
(
2000
)
NOT
NULL
DEFAULT
''
COMMENT
'禁用ip列表'
,
`upstream_connect_timeout`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'建立连接超时, 单位s'
,
`upstream_header_timeout`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'获取header超时, 单位s'
,
`upstream_idle_timeout`
int
(
10
)
NOT
NULL
DEFAULT
'0'
COMMENT
'链接最大空闲时间, 单位s'
,
`upstream_max_idle`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'最大空闲链接数'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
196
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关负载表'
;
-- ----------------------------
-- Records of lie_service_load_balance
-- ----------------------------
INSERT
INTO
`lie_service_load_balance`
VALUES
(
'190'
,
'62'
,
'0'
,
'2'
,
'5'
,
'1'
,
'192.168.1.234:2004,192.168.1.237:2004'
,
'20,30'
,
''
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_load_balance`
VALUES
(
'191'
,
'75'
,
'0'
,
'0'
,
'0'
,
'2'
,
''
,
''
,
''
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_load_balance`
VALUES
(
'192'
,
'76'
,
'0'
,
'0'
,
'0'
,
'2'
,
''
,
''
,
''
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_load_balance`
VALUES
(
'193'
,
'77'
,
'0'
,
'0'
,
'0'
,
'2'
,
''
,
''
,
''
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_load_balance`
VALUES
(
'194'
,
'78'
,
'0'
,
'0'
,
'0'
,
'2'
,
''
,
''
,
''
,
'0'
,
'0'
,
'0'
,
'0'
);
INSERT
INTO
`lie_service_load_balance`
VALUES
(
'195'
,
'79'
,
'0'
,
'0'
,
'0'
,
'2'
,
''
,
''
,
''
,
'0'
,
'0'
,
'0'
,
'0'
);
-- ----------------------------
-- Table structure for lie_service_tcp_rule
-- ----------------------------
DROP
TABLE
IF
EXISTS
`lie_service_tcp_rule`
;
CREATE
TABLE
`lie_service_tcp_rule`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`service_id`
bigint
(
20
)
NOT
NULL
COMMENT
'服务id'
,
`port`
int
(
5
)
NOT
NULL
DEFAULT
'0'
COMMENT
'端口号'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
182
DEFAULT
CHARSET
=
utf8
COMMENT
=
'网关路由匹配表'
;
-- ----------------------------
-- Records of lie_service_tcp_rule
-- ----------------------------
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'171'
,
'41'
,
'8002'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'172'
,
'42'
,
'8003'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'173'
,
'43'
,
'8004'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'174'
,
'38'
,
'8004'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'175'
,
'45'
,
'8001'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'176'
,
'46'
,
'8005'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'177'
,
'50'
,
'8006'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'178'
,
'51'
,
'8007'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'179'
,
'52'
,
'8008'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'180'
,
'55'
,
'8010'
);
INSERT
INTO
`lie_service_tcp_rule`
VALUES
(
'181'
,
'57'
,
'8011'
);
perm_manager.sql
deleted
100644 → 0
View file @
9469badd
/*
Navicat Premium Data Transfer
Source Server : dev-192.168.202.90
Source Server Type : MySQL
Source Server Version : 50536
Source Host : 192.168.202.90
Source Database : perm_manager
Target Server Type : MySQL
Target Server Version : 50536
File Encoding : utf-8
Date: 07/04/2017 16:52:37 PM
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for `t_business_config`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`t_business_config`
;
CREATE
TABLE
`t_business_config`
(
`bid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'业务id'
,
`url`
varchar
(
128
)
NOT
NULL
DEFAULT
''
COMMENT
'业务url'
,
`title`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'标题'
,
`description`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'描述'
,
`mtime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`ctime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`admin`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'管理员, 可以是多个'
,
`auditerType`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'审核人类型: 1 管理员; 2 直接上级;'
,
`creater`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'创建人'
,
`lastEditor`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'最后一次修改人'
,
`configs`
mediumblob
NOT
NULL
COMMENT
'权限配置, Json格式'
,
`status`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'状态: 0 正常状态; 1 审核中; 2 驳回; 3 已修改; 4 删除; '
,
PRIMARY
KEY
(
`bid`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
118
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Table structure for `t_perm_audit`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`t_perm_audit`
;
CREATE
TABLE
`t_perm_audit`
(
`auditId`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'审核id'
,
`userId`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'用户id'
,
`username`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'冗余用户名'
,
`bid`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'业务id'
,
`begDate`
date
NOT
NULL
COMMENT
'开始日期'
,
`endDate`
date
NOT
NULL
COMMENT
'结束日期'
,
`description`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'申请说明'
,
`roles`
varchar
(
256
)
NOT
NULL
DEFAULT
''
COMMENT
'用户所在的角色列表, 以,分隔'
,
`perms`
mediumblob
NOT
NULL
COMMENT
'权限列表, 以,分隔'
,
`mtime`
datetime
NOT
NULL
COMMENT
'修改时间'
,
`ctime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`status`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'状态: 1 审核中; 2 驳回; 3 已修改;'
,
PRIMARY
KEY
(
`auditId`
),
UNIQUE
KEY
`userId`
(
`userId`
,
`bid`
),
KEY
`bid`
(
`bid`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1000389
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Table structure for `t_role_perm`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`t_role_perm`
;
CREATE
TABLE
`t_role_perm`
(
`roleId`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'角色id'
,
`bid`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'业务id'
,
`name`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'角色名'
,
`description`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'详细描述信息'
,
`perms`
mediumblob
NOT
NULL
COMMENT
'权限列表, 以,分隔'
,
`creater`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'创建人'
,
`lastEditor`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'最后一次修改人'
,
`mtime`
datetime
NOT
NULL
COMMENT
'修改时间'
,
`ctime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
PRIMARY
KEY
(
`roleId`
),
KEY
`bid`
(
`bid`
,
`roleId`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
10071
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Table structure for `t_user_perm`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`t_user_perm`
;
CREATE
TABLE
`t_user_perm`
(
`userId`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'用户id'
,
`username`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'冗余用户名'
,
`bid`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'业务id'
,
`begDate`
date
NOT
NULL
COMMENT
'开始日期'
,
`endDate`
date
NOT
NULL
COMMENT
'结束日期'
,
`roles`
varchar
(
256
)
NOT
NULL
DEFAULT
''
COMMENT
'用户所在的角色列表, 以,分隔'
,
`perms`
mediumblob
NOT
NULL
COMMENT
'权限列表, 以,分隔'
,
`mtime`
datetime
NOT
NULL
COMMENT
'修改时间'
,
`ctime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
PRIMARY
KEY
(
`bid`
,
`userId`
),
KEY
`username`
(
`username`
),
KEY
`userId`
(
`userId`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
SET
FOREIGN_KEY_CHECKS
=
1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment