记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
1bca48a8
Commit
1bca48a8
authored
Apr 15, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
galaxy数据库增加索引
parent
af4daea8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
mysql_db_ddl.sql
...alaxy/liquidnet-service-galaxy-impl/docu/mysql_db_ddl.sql
+26
-1
No files found.
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/docu/mysql_db_ddl.sql
View file @
1bca48a8
...
...
@@ -19,6 +19,8 @@ create table galaxy_user_info
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品用户信息'
;
create
index
gui_idx_user_id
on
galaxy_user_info
(
user_id
);
drop
TABLE
if
exists
`galaxy_series_info`
;
create
table
galaxy_series_info
...
...
@@ -43,6 +45,11 @@ create table galaxy_series_info
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品系列信息'
;
create
index
gsi_idx_series_code
on
galaxy_series_info
(
series_code
);
create
index
gsi_idx_series_info_id
on
galaxy_series_info
(
series_info_id
);
drop
TABLE
if
exists
`galaxy_series_nft_info`
;
create
table
galaxy_series_nft_info
(
...
...
@@ -75,6 +82,10 @@ create table galaxy_series_nft_info
)
ENGINE
=
InnoDB
comment
'数字藏品系列nft信息'
;
-- alter table galaxy_series_nft_info add nft_id_begin_index int default 0 comment 'nftId开始索引' after nft_id_begin;
-- alter table galaxy_series_nft_info add nft_publish_number int default 1 comment 'nft系列发行序号' after nft_id_begin_index;
create
index
gsni_idx_series_nft_info_id
on
galaxy_series_nft_info
(
series_nft_info_id
);
create
index
gsni_idx_series_info_id
on
galaxy_series_nft_info
(
series_info_id
);
create
index
gsni_idx_sku_id
on
galaxy_series_nft_info
(
sku_id
);
create
index
gsni_idx_series_code
on
galaxy_series_nft_info
(
series_code
);
drop
TABLE
if
exists
`galaxy_nft_order_info`
;
create
table
galaxy_nft_order_info
...
...
@@ -108,6 +119,11 @@ create table galaxy_nft_order_info
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品订单信息'
;
-- alter table galaxy_nft_order_info add nft_name varchar(200) comment 'nft名字' after nft_id;
create
index
gsoi_idx_nft_order_pay_id
on
galaxy_nft_order_info
(
nft_order_pay_id
);
create
index
gsoi_idx_user_id
on
galaxy_nft_order_info
(
user_id
);
create
index
gsoi_idx_sku_id
on
galaxy_nft_order_info
(
sku_id
);
create
index
gsoi_idx_series_code
on
galaxy_nft_order_info
(
series_code
);
drop
TABLE
if
exists
`galaxy_nft_trade_info`
;
create
table
galaxy_nft_trade_info
...
...
@@ -131,6 +147,11 @@ create table galaxy_nft_trade_info
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品交易信息'
;
create
index
gnti_idx_user_id
on
galaxy_nft_trade_info
(
user_id
);
create
index
gnti_idx_nft_id
on
galaxy_nft_trade_info
(
nft_id
);
create
index
gnti_idx_series_code
on
galaxy_nft_trade_info
(
series_code
);
drop
TABLE
if
exists
`galaxy_nft_order_fail_log`
;
create
table
galaxy_nft_order_fail_log
(
...
...
@@ -152,3 +173,7 @@ create table galaxy_nft_order_fail_log
updated_at
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
comment
'数字藏品发行购买失败记录表'
;
create
index
gnofl_idx_nft_order_pay_id
on
galaxy_nft_order_fail_log
(
nft_order_pay_id
);
create
index
gnofl_idx_user_id
on
galaxy_nft_order_fail_log
(
user_id
);
create
index
gnofl_idx_nft_id
on
galaxy_nft_order_fail_log
(
nft_id
);
create
index
gnofl_idx_series_code
on
galaxy_nft_order_fail_log
(
series_code
);
\ No newline at end of file
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