Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
6745cc54
Commit
6745cc54
authored
Oct 26, 2016
by
Jason Song
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
05c3c67b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
54 deletions
+54
-54
apolloconfigdb.sql
scripts/sql/apolloconfigdb.sql
+29
-29
apolloportaldb.sql
scripts/sql/apolloportaldb.sql
+25
-25
No files found.
scripts/sql/apolloconfigdb.sql
View file @
6745cc54
...
@@ -15,9 +15,9 @@ Use ApolloConfigDB;
...
@@ -15,9 +15,9 @@ Use ApolloConfigDB;
#
Dump
of
table
app
#
Dump
of
table
app
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
a
pp`
;
DROP
TABLE
IF
EXISTS
`
A
pp`
;
CREATE
TABLE
`
a
pp`
(
CREATE
TABLE
`
A
pp`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'应用名'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'应用名'
,
...
@@ -41,9 +41,9 @@ CREATE TABLE `app` (
...
@@ -41,9 +41,9 @@ CREATE TABLE `app` (
#
Dump
of
table
appnamespace
#
Dump
of
table
appnamespace
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
appn
amespace`
;
DROP
TABLE
IF
EXISTS
`
AppN
amespace`
;
CREATE
TABLE
`
appn
amespace`
(
CREATE
TABLE
`
AppN
amespace`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'namespace名字,注意,需要全局唯一'
,
`Name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'namespace名字,注意,需要全局唯一'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'app id'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'app id'
,
...
@@ -65,9 +65,9 @@ CREATE TABLE `appnamespace` (
...
@@ -65,9 +65,9 @@ CREATE TABLE `appnamespace` (
#
Dump
of
table
audit
#
Dump
of
table
audit
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
a
udit`
;
DROP
TABLE
IF
EXISTS
`
A
udit`
;
CREATE
TABLE
`
a
udit`
(
CREATE
TABLE
`
A
udit`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`EntityName`
varchar
(
50
)
NOT
NULL
DEFAULT
'default'
COMMENT
'表名'
,
`EntityName`
varchar
(
50
)
NOT
NULL
DEFAULT
'default'
COMMENT
'表名'
,
`EntityId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'记录ID'
,
`EntityId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'记录ID'
,
...
@@ -87,9 +87,9 @@ CREATE TABLE `audit` (
...
@@ -87,9 +87,9 @@ CREATE TABLE `audit` (
#
Dump
of
table
cluster
#
Dump
of
table
cluster
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
c
luster`
;
DROP
TABLE
IF
EXISTS
`
C
luster`
;
CREATE
TABLE
`
c
luster`
(
CREATE
TABLE
`
C
luster`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'集群名字'
,
`Name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'集群名字'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'App id'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'App id'
,
...
@@ -108,9 +108,9 @@ CREATE TABLE `cluster` (
...
@@ -108,9 +108,9 @@ CREATE TABLE `cluster` (
#
Dump
of
table
commit
#
Dump
of
table
commit
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
c
ommit`
;
DROP
TABLE
IF
EXISTS
`
C
ommit`
;
CREATE
TABLE
`
c
ommit`
(
CREATE
TABLE
`
C
ommit`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`ChangeSets`
longtext
NOT
NULL
COMMENT
'修改变更集'
,
`ChangeSets`
longtext
NOT
NULL
COMMENT
'修改变更集'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
...
@@ -134,9 +134,9 @@ CREATE TABLE `commit` (
...
@@ -134,9 +134,9 @@ CREATE TABLE `commit` (
#
Dump
of
table
instance
#
Dump
of
table
instance
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
i
nstance`
;
DROP
TABLE
IF
EXISTS
`
I
nstance`
;
CREATE
TABLE
`
i
nstance`
(
CREATE
TABLE
`
I
nstance`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`ClusterName`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'ClusterName'
,
`ClusterName`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'ClusterName'
,
...
@@ -155,9 +155,9 @@ CREATE TABLE `instance` (
...
@@ -155,9 +155,9 @@ CREATE TABLE `instance` (
#
Dump
of
table
instanceconfig
#
Dump
of
table
instanceconfig
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
instancec
onfig`
;
DROP
TABLE
IF
EXISTS
`
InstanceC
onfig`
;
CREATE
TABLE
`
instancec
onfig`
(
CREATE
TABLE
`
InstanceC
onfig`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`InstanceId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'Instance Id'
,
`InstanceId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'Instance Id'
,
`ConfigAppId`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Config App Id'
,
`ConfigAppId`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Config App Id'
,
...
@@ -179,9 +179,9 @@ CREATE TABLE `instanceconfig` (
...
@@ -179,9 +179,9 @@ CREATE TABLE `instanceconfig` (
#
Dump
of
table
item
#
Dump
of
table
item
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
i
tem`
;
DROP
TABLE
IF
EXISTS
`
I
tem`
;
CREATE
TABLE
`
i
tem`
(
CREATE
TABLE
`
I
tem`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`NamespaceId`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'集群NamespaceId'
,
`NamespaceId`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'集群NamespaceId'
,
`Key`
varchar
(
128
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项Key'
,
`Key`
varchar
(
128
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项Key'
,
...
@@ -203,9 +203,9 @@ CREATE TABLE `item` (
...
@@ -203,9 +203,9 @@ CREATE TABLE `item` (
#
Dump
of
table
namespace
#
Dump
of
table
namespace
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
n
amespace`
;
DROP
TABLE
IF
EXISTS
`
N
amespace`
;
CREATE
TABLE
`
n
amespace`
(
CREATE
TABLE
`
N
amespace`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`ClusterName`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Cluster Name'
,
`ClusterName`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Cluster Name'
,
...
@@ -225,9 +225,9 @@ CREATE TABLE `namespace` (
...
@@ -225,9 +225,9 @@ CREATE TABLE `namespace` (
#
Dump
of
table
namespacelock
#
Dump
of
table
namespacelock
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
namespacel
ock`
;
DROP
TABLE
IF
EXISTS
`
NamespaceL
ock`
;
CREATE
TABLE
`
namespacel
ock`
(
CREATE
TABLE
`
NamespaceL
ock`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增id'
,
`NamespaceId`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'集群NamespaceId'
,
`NamespaceId`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
COMMENT
'集群NamespaceId'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
`DataChange_CreatedBy`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'创建人邮箱前缀'
,
...
@@ -245,9 +245,9 @@ CREATE TABLE `namespacelock` (
...
@@ -245,9 +245,9 @@ CREATE TABLE `namespacelock` (
#
Dump
of
table
privilege
#
Dump
of
table
privilege
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
p
rivilege`
;
DROP
TABLE
IF
EXISTS
`
P
rivilege`
;
CREATE
TABLE
`
p
rivilege`
(
CREATE
TABLE
`
P
rivilege`
(
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Name'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'Name'
,
`PrivilType`
varchar
(
50
)
NOT
NULL
DEFAULT
'default'
COMMENT
'PrivilType'
,
`PrivilType`
varchar
(
50
)
NOT
NULL
DEFAULT
'default'
COMMENT
'PrivilType'
,
...
@@ -267,9 +267,9 @@ CREATE TABLE `privilege` (
...
@@ -267,9 +267,9 @@ CREATE TABLE `privilege` (
#
Dump
of
table
release
#
Dump
of
table
release
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
r
elease`
;
DROP
TABLE
IF
EXISTS
`
R
elease`
;
CREATE
TABLE
`
r
elease`
(
CREATE
TABLE
`
R
elease`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`ReleaseKey`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'发布的Key'
,
`ReleaseKey`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'发布的Key'
,
`Name`
varchar
(
64
)
NOT
NULL
DEFAULT
'default'
COMMENT
'发布名字'
,
`Name`
varchar
(
64
)
NOT
NULL
DEFAULT
'default'
COMMENT
'发布名字'
,
...
@@ -296,9 +296,9 @@ CREATE TABLE `release` (
...
@@ -296,9 +296,9 @@ CREATE TABLE `release` (
#
Dump
of
table
releasemessage
#
Dump
of
table
releasemessage
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
releasem
essage`
;
DROP
TABLE
IF
EXISTS
`
ReleaseM
essage`
;
CREATE
TABLE
`
releasem
essage`
(
CREATE
TABLE
`
ReleaseM
essage`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Message`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'发布的消息内容'
,
`Message`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'发布的消息内容'
,
`DataChange_LastTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
`DataChange_LastTime`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'最后修改时间'
,
...
@@ -312,9 +312,9 @@ CREATE TABLE `releasemessage` (
...
@@ -312,9 +312,9 @@ CREATE TABLE `releasemessage` (
#
Dump
of
table
serverconfig
#
Dump
of
table
serverconfig
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
serverc
onfig`
;
DROP
TABLE
IF
EXISTS
`
ServerC
onfig`
;
CREATE
TABLE
`
serverc
onfig`
(
CREATE
TABLE
`
ServerC
onfig`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Key`
varchar
(
64
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项Key'
,
`Key`
varchar
(
64
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项Key'
,
`Cluster`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置对应的集群,default为不针对特定的集群'
,
`Cluster`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置对应的集群,default为不针对特定的集群'
,
...
@@ -332,7 +332,7 @@ CREATE TABLE `serverconfig` (
...
@@ -332,7 +332,7 @@ CREATE TABLE `serverconfig` (
#
Config
#
Config
#
------------------------------------------------------------
#
------------------------------------------------------------
INSERT
INTO
`
serverc
onfig`
(
`Key`
,
`Cluster`
,
`Value`
,
`Comment`
)
INSERT
INTO
`
ServerC
onfig`
(
`Key`
,
`Cluster`
,
`Value`
,
`Comment`
)
VALUES
VALUES
(
'eureka.service.url'
,
'default'
,
'http://localhost:8080/eureka/'
,
'Eureka服务Url'
),
(
'eureka.service.url'
,
'default'
,
'http://localhost:8080/eureka/'
,
'Eureka服务Url'
),
(
'namespace.lock.switch'
,
'default'
,
'false'
,
'一次发布只能有一个人修改开关'
),
(
'namespace.lock.switch'
,
'default'
,
'false'
,
'一次发布只能有一个人修改开关'
),
...
...
scripts/sql/apolloportaldb.sql
View file @
6745cc54
...
@@ -15,9 +15,9 @@ Use ApolloPortalDB;
...
@@ -15,9 +15,9 @@ Use ApolloPortalDB;
#
Dump
of
table
app
#
Dump
of
table
app
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
a
pp`
;
DROP
TABLE
IF
EXISTS
`
A
pp`
;
CREATE
TABLE
`
a
pp`
(
CREATE
TABLE
`
A
pp`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'应用名'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'应用名'
,
...
@@ -41,9 +41,9 @@ CREATE TABLE `app` (
...
@@ -41,9 +41,9 @@ CREATE TABLE `app` (
#
Dump
of
table
appnamespace
#
Dump
of
table
appnamespace
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
appn
amespace`
;
DROP
TABLE
IF
EXISTS
`
AppN
amespace`
;
CREATE
TABLE
`
appn
amespace`
(
CREATE
TABLE
`
AppN
amespace`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增主键'
,
`Name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'namespace名字,注意,需要全局唯一'
,
`Name`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'namespace名字,注意,需要全局唯一'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'app id'
,
`AppId`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'app id'
,
...
@@ -65,9 +65,9 @@ CREATE TABLE `appnamespace` (
...
@@ -65,9 +65,9 @@ CREATE TABLE `appnamespace` (
#
Dump
of
table
consumer
#
Dump
of
table
consumer
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
c
onsumer`
;
DROP
TABLE
IF
EXISTS
`
C
onsumer`
;
CREATE
TABLE
`
c
onsumer`
(
CREATE
TABLE
`
C
onsumer`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'应用名'
,
`Name`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'应用名'
,
...
@@ -90,9 +90,9 @@ CREATE TABLE `consumer` (
...
@@ -90,9 +90,9 @@ CREATE TABLE `consumer` (
#
Dump
of
table
consumeraudit
#
Dump
of
table
consumeraudit
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
consumera
udit`
;
DROP
TABLE
IF
EXISTS
`
ConsumerA
udit`
;
CREATE
TABLE
`
consumera
udit`
(
CREATE
TABLE
`
ConsumerA
udit`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`ConsumerId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'Consumer Id'
,
`ConsumerId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'Consumer Id'
,
`Uri`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'访问的Uri'
,
`Uri`
varchar
(
1024
)
NOT
NULL
DEFAULT
''
COMMENT
'访问的Uri'
,
...
@@ -109,9 +109,9 @@ CREATE TABLE `consumeraudit` (
...
@@ -109,9 +109,9 @@ CREATE TABLE `consumeraudit` (
#
Dump
of
table
consumerrole
#
Dump
of
table
consumerrole
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
consumerr
ole`
;
DROP
TABLE
IF
EXISTS
`
ConsumerR
ole`
;
CREATE
TABLE
`
consumerr
ole`
(
CREATE
TABLE
`
ConsumerR
ole`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`ConsumerId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'Consumer Id'
,
`ConsumerId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'Consumer Id'
,
`RoleId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Role Id'
,
`RoleId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Role Id'
,
...
@@ -131,9 +131,9 @@ CREATE TABLE `consumerrole` (
...
@@ -131,9 +131,9 @@ CREATE TABLE `consumerrole` (
#
Dump
of
table
consumertoken
#
Dump
of
table
consumertoken
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
consumert
oken`
;
DROP
TABLE
IF
EXISTS
`
ConsumerT
oken`
;
CREATE
TABLE
`
consumert
oken`
(
CREATE
TABLE
`
ConsumerT
oken`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`ConsumerId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'ConsumerId'
,
`ConsumerId`
int
(
11
)
unsigned
DEFAULT
NULL
COMMENT
'ConsumerId'
,
`Token`
varchar
(
128
)
NOT
NULL
DEFAULT
''
COMMENT
'token'
,
`Token`
varchar
(
128
)
NOT
NULL
DEFAULT
''
COMMENT
'token'
,
...
@@ -151,9 +151,9 @@ CREATE TABLE `consumertoken` (
...
@@ -151,9 +151,9 @@ CREATE TABLE `consumertoken` (
#
Dump
of
table
favorite
#
Dump
of
table
favorite
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
f
avorite`
;
DROP
TABLE
IF
EXISTS
`
F
avorite`
;
CREATE
TABLE
`
f
avorite`
(
CREATE
TABLE
`
F
avorite`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`UserId`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'收藏的用户'
,
`UserId`
varchar
(
32
)
NOT
NULL
DEFAULT
'default'
COMMENT
'收藏的用户'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
`AppId`
varchar
(
500
)
NOT
NULL
DEFAULT
'default'
COMMENT
'AppID'
,
...
@@ -172,9 +172,9 @@ CREATE TABLE `favorite` (
...
@@ -172,9 +172,9 @@ CREATE TABLE `favorite` (
#
Dump
of
table
permission
#
Dump
of
table
permission
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
p
ermission`
;
DROP
TABLE
IF
EXISTS
`
P
ermission`
;
CREATE
TABLE
`
p
ermission`
(
CREATE
TABLE
`
P
ermission`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`PermissionType`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'权限类型'
,
`PermissionType`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'权限类型'
,
`TargetId`
varchar
(
256
)
NOT
NULL
DEFAULT
''
COMMENT
'权限对象类型'
,
`TargetId`
varchar
(
256
)
NOT
NULL
DEFAULT
''
COMMENT
'权限对象类型'
,
...
@@ -193,9 +193,9 @@ CREATE TABLE `permission` (
...
@@ -193,9 +193,9 @@ CREATE TABLE `permission` (
#
Dump
of
table
role
#
Dump
of
table
role
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
r
ole`
;
DROP
TABLE
IF
EXISTS
`
R
ole`
;
CREATE
TABLE
`
r
ole`
(
CREATE
TABLE
`
R
ole`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`RoleName`
varchar
(
256
)
NOT
NULL
DEFAULT
''
COMMENT
'Role name'
,
`RoleName`
varchar
(
256
)
NOT
NULL
DEFAULT
''
COMMENT
'Role name'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
`IsDeleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'1: deleted, 0: normal'
,
...
@@ -213,9 +213,9 @@ CREATE TABLE `role` (
...
@@ -213,9 +213,9 @@ CREATE TABLE `role` (
#
Dump
of
table
rolepermission
#
Dump
of
table
rolepermission
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
rolep
ermission`
;
DROP
TABLE
IF
EXISTS
`
RoleP
ermission`
;
CREATE
TABLE
`
rolep
ermission`
(
CREATE
TABLE
`
RoleP
ermission`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`RoleId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Role Id'
,
`RoleId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Role Id'
,
`PermissionId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Permission Id'
,
`PermissionId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Permission Id'
,
...
@@ -235,9 +235,9 @@ CREATE TABLE `rolepermission` (
...
@@ -235,9 +235,9 @@ CREATE TABLE `rolepermission` (
#
Dump
of
table
serverconfig
#
Dump
of
table
serverconfig
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
serverc
onfig`
;
DROP
TABLE
IF
EXISTS
`
ServerC
onfig`
;
CREATE
TABLE
`
serverc
onfig`
(
CREATE
TABLE
`
ServerC
onfig`
(
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Key`
varchar
(
64
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项Key'
,
`Key`
varchar
(
64
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项Key'
,
`Value`
varchar
(
2048
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项值'
,
`Value`
varchar
(
2048
)
NOT
NULL
DEFAULT
'default'
COMMENT
'配置项值'
,
...
@@ -257,9 +257,9 @@ CREATE TABLE `serverconfig` (
...
@@ -257,9 +257,9 @@ CREATE TABLE `serverconfig` (
#
Dump
of
table
userrole
#
Dump
of
table
userrole
#
------------------------------------------------------------
#
------------------------------------------------------------
DROP
TABLE
IF
EXISTS
`
userr
ole`
;
DROP
TABLE
IF
EXISTS
`
UserR
ole`
;
CREATE
TABLE
`
userr
ole`
(
CREATE
TABLE
`
UserR
ole`
(
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`Id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'自增Id'
,
`UserId`
varchar
(
128
)
DEFAULT
''
COMMENT
'用户身份标识'
,
`UserId`
varchar
(
128
)
DEFAULT
''
COMMENT
'用户身份标识'
,
`RoleId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Role Id'
,
`RoleId`
int
(
10
)
unsigned
DEFAULT
NULL
COMMENT
'Role Id'
,
...
@@ -276,7 +276,7 @@ CREATE TABLE `userrole` (
...
@@ -276,7 +276,7 @@ CREATE TABLE `userrole` (
#
Config
#
Config
#
------------------------------------------------------------
#
------------------------------------------------------------
INSERT
INTO
`
serverc
onfig`
(
`Key`
,
`Value`
,
`Comment`
)
INSERT
INTO
`
ServerC
onfig`
(
`Key`
,
`Value`
,
`Comment`
)
VALUES
VALUES
(
'apollo.portal.envs'
,
'dev'
,
'可支持的环境列表'
),
(
'apollo.portal.envs'
,
'dev'
,
'可支持的环境列表'
),
(
'organizations'
,
'[{
\"
orgId
\"
:
\"
TEST1
\"
,
\"
orgName
\"
:
\"
样例部门1
\"
},{
\"
orgId
\"
:
\"
TEST2
\"
,
\"
orgName
\"
:
\"
样例部门2
\"
}]'
,
'部门列表'
),
(
'organizations'
,
'[{
\"
orgId
\"
:
\"
TEST1
\"
,
\"
orgName
\"
:
\"
样例部门1
\"
},{
\"
orgId
\"
:
\"
TEST2
\"
,
\"
orgName
\"
:
\"
样例部门2
\"
}]'
,
'部门列表'
),
...
...
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