记得上下班打卡 | 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
c52c780b
Commit
c52c780b
authored
Jun 26, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交数据库 改动
parent
ae146080
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
67 deletions
+75
-67
db_kylin_structure.sql
.../liquidnet-service-kylin-impl/docu/db_kylin_structure.sql
+75
-67
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/docu/db_kylin_structure.sql
View file @
c52c780b
create
create
database
if
not
exists
ln_scene
character
set
utf8mb4
collate
utf8mb4_unicode_ci
;
database
if
not
exists
ln_scene
character
set
utf8mb4
collate
utf8mb4_unicode_ci
;
-- >>------------------------------------------------------------------------------------
-- >>------------------------------------------------------------------------------------
use
use
ln_scene
;
ln_scene
;
SET
NAMES
utf8mb4
;
-- 轮播图
-- 轮播图
drop
TABLE
if
exists
`kylin_banners`
;
drop
TABLE
if
exists
`kylin_banners`
;
CREATE
TABLE
`kylin_banners`
CREATE
TABLE
`kylin_banners`
...
@@ -163,6 +161,12 @@ CREATE TABLE `kylin_performance_status`
...
@@ -163,6 +161,12 @@ CREATE TABLE `kylin_performance_status`
`limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count_member`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'会员限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count_member`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'会员限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`is_recommend`
tinyint
(
255
)
NOT
NULL
DEFAULT
0
COMMENT
'是否推荐 0否 1是'
,
`is_recommend`
tinyint
(
255
)
NOT
NULL
DEFAULT
0
COMMENT
'是否推荐 0否 1是'
,
`is_can_refund`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否支持退款 0否 1是'
,
`is_open_refund_present`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否开启退款比例 0否 1是'
,
`refund_open_time`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'退款开始时间'
,
`refund_close_time`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'退款结束时间'
,
`created_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`created_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performance_status_uid_index`
(
`performance_status_id`
),
KEY
`kylin_performance_status_uid_index`
(
`performance_status_id`
),
...
@@ -192,8 +196,24 @@ CREATE TABLE `kylin_performance_relations`
...
@@ -192,8 +196,24 @@ CREATE TABLE `kylin_performance_relations`
KEY
`performance_relations_copy_id_index`
(
`copy_id`
),
KEY
`performance_relations_copy_id_index`
(
`copy_id`
),
KEY
`performance_relations_performance_id_index`
(
`performance_id`
),
KEY
`performance_relations_performance_id_index`
(
`performance_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'演出状态'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出状态'
;
#
-- 演出退款比例表
#
drop
TABLE
if
exists
`kylin_performance_refund_present`
;
#
CREATE
TABLE
`kylin_performance_refund_present`
#
(
#
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
#
`performance_present_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'performance_present_id'
,
#
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出关联id'
,
#
`present`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'百分比'
,
#
`days`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'天数'
,
#
`created_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
#
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
#
KEY
`kylin_performance_refund_present_uid_index`
(
`performance_present_id`
),
#
KEY
`kylin_performance_refund_present_performance_id_index`
(
`performance_id`
),
#
PRIMARY
KEY
(
`mid`
)
#
)
ENGINE
=
InnoDB
#
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出退款比例'
;
-- 演出分销数据 票逻辑
-- 演出分销数据 票逻辑
drop
TABLE
if
exists
`kylin_performance_distributions`
;
drop
TABLE
if
exists
`kylin_performance_distributions`
;
CREATE
TABLE
`kylin_performance_distributions`
CREATE
TABLE
`kylin_performance_distributions`
...
@@ -212,8 +232,7 @@ CREATE TABLE `kylin_performance_distributions`
...
@@ -212,8 +232,7 @@ CREATE TABLE `kylin_performance_distributions`
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performance_distributions_uid_index`
(
`performance_distributions_id`
),
KEY
`kylin_performance_distributions_uid_index`
(
`performance_distributions_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'演出状态'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出状态'
;
-- 场次
-- 场次
...
@@ -232,8 +251,7 @@ CREATE TABLE `kylin_ticket_times`
...
@@ -232,8 +251,7 @@ CREATE TABLE `kylin_ticket_times`
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_times_uid_index`
(
`ticket_times_id`
),
KEY
`kylin_ticket_times_uid_index`
(
`ticket_times_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'场次'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场次'
;
-- 场次关联
-- 场次关联
drop
TABLE
if
exists
`kylin_ticket_time_relation`
;
drop
TABLE
if
exists
`kylin_ticket_time_relation`
;
...
@@ -249,8 +267,7 @@ CREATE TABLE `kylin_ticket_time_relation`
...
@@ -249,8 +267,7 @@ CREATE TABLE `kylin_ticket_time_relation`
KEY
`kylin_ticket_time_relation_times_id_index`
(
`times_id`
),
KEY
`kylin_ticket_time_relation_times_id_index`
(
`times_id`
),
KEY
`kylin_ticket_time_relation_performance_id_index`
(
`performance_id`
),
KEY
`kylin_ticket_time_relation_performance_id_index`
(
`performance_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'场次关联'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场次关联'
;
-- 票
-- 票
drop
TABLE
if
exists
`kylin_tickets`
;
drop
TABLE
if
exists
`kylin_tickets`
;
...
@@ -280,8 +297,7 @@ CREATE TABLE `kylin_tickets`
...
@@ -280,8 +297,7 @@ CREATE TABLE `kylin_tickets`
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_tickets_uid_index`
(
`tickets_id`
),
KEY
`kylin_tickets_uid_index`
(
`tickets_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'票'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'票'
;
-- 票状态
-- 票状态
drop
TABLE
if
exists
`kylin_ticket_status`
;
drop
TABLE
if
exists
`kylin_ticket_status`
;
CREATE
TABLE
`kylin_ticket_status`
CREATE
TABLE
`kylin_ticket_status`
...
@@ -320,8 +336,7 @@ CREATE TABLE `kylin_ticket_status`
...
@@ -320,8 +336,7 @@ CREATE TABLE `kylin_ticket_status`
KEY
`kylin_ticket_status_is_exclusive_index`
(
`is_exclusive`
),
KEY
`kylin_ticket_status_is_exclusive_index`
(
`is_exclusive`
),
KEY
`kylin_ticket_status_is_true_name_index`
(
`is_true_name`
),
KEY
`kylin_ticket_status_is_true_name_index`
(
`is_true_name`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'票'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'票'
;
-- 票关系
-- 票关系
drop
TABLE
if
exists
`kylin_ticket_relations`
;
drop
TABLE
if
exists
`kylin_ticket_relations`
;
CREATE
TABLE
`kylin_ticket_relations`
CREATE
TABLE
`kylin_ticket_relations`
...
@@ -336,8 +351,7 @@ CREATE TABLE `kylin_ticket_relations`
...
@@ -336,8 +351,7 @@ CREATE TABLE `kylin_ticket_relations`
KEY
`ticket_relations_ticket_id_index`
(
`ticket_id`
),
KEY
`ticket_relations_ticket_id_index`
(
`ticket_id`
),
KEY
`ticket_relations_times_id_index`
(
`times_id`
),
KEY
`ticket_relations_times_id_index`
(
`times_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'票'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'票'
;
-- 巡演
-- 巡演
drop
TABLE
if
exists
`kylin_road_shows`
;
drop
TABLE
if
exists
`kylin_road_shows`
;
...
@@ -354,8 +368,7 @@ CREATE TABLE `kylin_road_shows`
...
@@ -354,8 +368,7 @@ CREATE TABLE `kylin_road_shows`
KEY
`kylin_road_shows_uid_index`
(
`road_shows_id`
),
KEY
`kylin_road_shows_uid_index`
(
`road_shows_id`
),
KEY
`ticket_relations_times_status_index`
(
`status`
),
KEY
`ticket_relations_times_status_index`
(
`status`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'巡演'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'巡演'
;
-- 缺票登记 记录
-- 缺票登记 记录
...
@@ -378,8 +391,7 @@ CREATE TABLE `kylin_lack_registers`
...
@@ -378,8 +391,7 @@ CREATE TABLE `kylin_lack_registers`
KEY
`kylin_lack_registers_ticket_id_index`
(
`ticket_id`
),
KEY
`kylin_lack_registers_ticket_id_index`
(
`ticket_id`
),
KEY
`kylin_lack_registers_user_id_index`
(
`user_id`
),
KEY
`kylin_lack_registers_user_id_index`
(
`user_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'缺票登记'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'缺票登记'
;
-- 专题 <搭售>
-- 专题 <搭售>
drop
TABLE
if
exists
`kylin_projects`
;
drop
TABLE
if
exists
`kylin_projects`
;
...
@@ -398,8 +410,7 @@ CREATE TABLE `kylin_projects`
...
@@ -398,8 +410,7 @@ CREATE TABLE `kylin_projects`
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
,
`updated_at`
datetime
(
3
)
NULL
DEFAULT
NULL
,
KEY
`kylin_projects_uid_index`
(
`projects_id`
),
KEY
`kylin_projects_uid_index`
(
`projects_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'专题'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'专题'
;
-- 专题关系
-- 专题关系
drop
TABLE
if
exists
`kylin_project_relations`
;
drop
TABLE
if
exists
`kylin_project_relations`
;
CREATE
TABLE
`kylin_project_relations`
CREATE
TABLE
`kylin_project_relations`
...
@@ -422,8 +433,7 @@ CREATE TABLE `kylin_project_relations`
...
@@ -422,8 +433,7 @@ CREATE TABLE `kylin_project_relations`
KEY
`kylin_project_relations_project_id_index`
(
`project_id`
),
KEY
`kylin_project_relations_project_id_index`
(
`project_id`
),
KEY
`kylin_project_relations_target_id_index`
(
`target_id`
),
KEY
`kylin_project_relations_target_id_index`
(
`target_id`
),
KEY
`kylin_project_relations_item_id_index`
(
`item_id`
)
KEY
`kylin_project_relations_item_id_index`
(
`item_id`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'专题关系'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'专题关系'
;
-- 订单
-- 订单
...
@@ -469,8 +479,7 @@ CREATE TABLE `kylin_order_tickets`
...
@@ -469,8 +479,7 @@ CREATE TABLE `kylin_order_tickets`
KEY
`kylin_order_tickets_order_code_index`
(
`order_code`
),
KEY
`kylin_order_tickets_order_code_index`
(
`order_code`
),
KEY
`kylin_order_tickets_order_type_index`
(
`order_type`
),
KEY
`kylin_order_tickets_order_type_index`
(
`order_type`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'订单'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单'
;
-- 订单关系
-- 订单关系
drop
TABLE
if
exists
`kylin_order_ticket_relations`
;
drop
TABLE
if
exists
`kylin_order_ticket_relations`
;
CREATE
TABLE
`kylin_order_ticket_relations`
CREATE
TABLE
`kylin_order_ticket_relations`
...
@@ -495,8 +504,7 @@ CREATE TABLE `kylin_order_ticket_relations`
...
@@ -495,8 +504,7 @@ CREATE TABLE `kylin_order_ticket_relations`
KEY
`kylin_order_ticket_relations_agent_id_index`
(
`agent_id`
),
KEY
`kylin_order_ticket_relations_agent_id_index`
(
`agent_id`
),
KEY
`kylin_order_ticket_relations_is_member_index`
(
`is_member`
),
KEY
`kylin_order_ticket_relations_is_member_index`
(
`is_member`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'订单关系'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单关系'
;
-- 订单状态
-- 订单状态
drop
TABLE
if
exists
`kylin_order_ticket_status`
;
drop
TABLE
if
exists
`kylin_order_ticket_status`
;
CREATE
TABLE
`kylin_order_ticket_status`
CREATE
TABLE
`kylin_order_ticket_status`
...
@@ -516,8 +524,7 @@ CREATE TABLE `kylin_order_ticket_status`
...
@@ -516,8 +524,7 @@ CREATE TABLE `kylin_order_ticket_status`
KEY
`kylin_order_ticket_status_status_index`
(
`status`
),
KEY
`kylin_order_ticket_status_status_index`
(
`status`
),
KEY
`kylin_order_ticket_status_pay_status_index`
(
`pay_status`
),
KEY
`kylin_order_ticket_status_pay_status_index`
(
`pay_status`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'订单状态'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单状态'
;
-- 订单详情
-- 订单详情
...
@@ -549,8 +556,7 @@ CREATE TABLE `kylin_order_ticket_entities`
...
@@ -549,8 +556,7 @@ CREATE TABLE `kylin_order_ticket_entities`
KEY
`kylin_order_ticket_entities_user_id_index`
(
`user_id`
),
KEY
`kylin_order_ticket_entities_user_id_index`
(
`user_id`
),
KEY
`kylin_order_ticket_entities_time_id_index`
(
`time_id`
),
KEY
`kylin_order_ticket_entities_time_id_index`
(
`time_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'订单详情'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单详情'
;
-- 购票须知表
-- 购票须知表
drop
TABLE
if
exists
`kylin_buy_notice`
;
drop
TABLE
if
exists
`kylin_buy_notice`
;
...
@@ -568,8 +574,7 @@ CREATE TABLE `kylin_buy_notice`
...
@@ -568,8 +574,7 @@ CREATE TABLE `kylin_buy_notice`
KEY
`kylin_buy_notice_uid_index`
(
`buy_notice_id`
),
KEY
`kylin_buy_notice_uid_index`
(
`buy_notice_id`
),
KEY
`kylin_buy_notice_status_index`
(
`status`
),
KEY
`kylin_buy_notice_status_index`
(
`status`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'购票须知表'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'购票须知表'
;
-- 验票用户表
-- 验票用户表
drop
TABLE
if
exists
`kylin_check_user`
;
drop
TABLE
if
exists
`kylin_check_user`
;
...
@@ -588,8 +593,7 @@ CREATE TABLE `kylin_check_user`
...
@@ -588,8 +593,7 @@ CREATE TABLE `kylin_check_user`
KEY
`kylin_check_user_mobile_index`
(
`mobile`
),
KEY
`kylin_check_user_mobile_index`
(
`mobile`
),
KEY
`kylin_check_user_pwd_index`
(
`pwd`
),
KEY
`kylin_check_user_pwd_index`
(
`pwd`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'验票用户表'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'验票用户表'
;
-- 验票用户可看演出表
-- 验票用户可看演出表
drop
TABLE
if
exists
`kylin_check_user_performances`
;
drop
TABLE
if
exists
`kylin_check_user_performances`
;
...
@@ -608,8 +612,7 @@ CREATE TABLE `kylin_check_user_performances`
...
@@ -608,8 +612,7 @@ CREATE TABLE `kylin_check_user_performances`
KEY
`kylin_check_user_check_user_id_index`
(
`check_user_id`
),
KEY
`kylin_check_user_check_user_id_index`
(
`check_user_id`
),
KEY
`kylin_check_user_check_user_id_index`
(
`status`
),
KEY
`kylin_check_user_check_user_id_index`
(
`status`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'验票用户可看演出表'
;
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'验票用户可看演出表'
;
insert
into
`kylin_buy_notice`
(
`buy_notice_id`
,
`img_url`
,
`message`
,
`status`
,
`sort`
,
`created_at`
,
insert
into
`kylin_buy_notice`
(
`buy_notice_id`
,
`img_url`
,
`message`
,
`status`
,
`sort`
,
`created_at`
,
...
@@ -683,9 +686,7 @@ CREATE TABLE `kylin_order_refund_batches`
...
@@ -683,9 +686,7 @@ CREATE TABLE `kylin_order_refund_batches`
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
KEY
`kylin_order_refund_batch_id_index`
(
`refund_batch_id`
),
KEY
`kylin_order_refund_batch_id_index`
(
`refund_batch_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'批量退款表'
;
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
'批量退款表'
;
#
订单退款表
#
订单退款表
drop
TABLE
if
exists
`kylin_order_refunds`
;
drop
TABLE
if
exists
`kylin_order_refunds`
;
...
@@ -725,9 +726,7 @@ CREATE TABLE `kylin_order_refunds`
...
@@ -725,9 +726,7 @@ CREATE TABLE `kylin_order_refunds`
KEY
`kylin_order_refunds_order_tickets_id_index`
(
`order_tickets_id`
),
KEY
`kylin_order_refunds_order_tickets_id_index`
(
`order_tickets_id`
),
KEY
`kylin_order_refunds_refund_type_index`
(
`refund_type`
),
KEY
`kylin_order_refunds_refund_type_index`
(
`refund_type`
),
KEY
`kylin_order_refunds_order_refunds_id_index`
(
`order_refunds_id`
)
KEY
`kylin_order_refunds_order_refunds_id_index`
(
`order_refunds_id`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
=
'订单退款表'
;
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'订单退款表'
;
drop
TABLE
if
exists
`kylin_order_refund_entities`
;
drop
TABLE
if
exists
`kylin_order_refund_entities`
;
CREATE
TABLE
`kylin_order_refund_entities`
CREATE
TABLE
`kylin_order_refund_entities`
...
@@ -741,9 +740,7 @@ CREATE TABLE `kylin_order_refund_entities`
...
@@ -741,9 +740,7 @@ CREATE TABLE `kylin_order_refund_entities`
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
KEY
`kylin_order_refunds_entities_id_index`
(
`order_refunds_entities_id`
),
KEY
`kylin_order_refunds_entities_id_index`
(
`order_refunds_entities_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'退款入场人表'
;
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
'退款入场人表'
;
drop
TABLE
if
exists
`kylin_order_express`
;
drop
TABLE
if
exists
`kylin_order_express`
;
CREATE
TABLE
`kylin_order_express`
CREATE
TABLE
`kylin_order_express`
...
@@ -765,6 +762,17 @@ CREATE TABLE `kylin_order_express`
...
@@ -765,6 +762,17 @@ CREATE TABLE `kylin_order_express`
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
KEY
`kylin_order_express_order_express_id_index`
(
`order_express_id`
),
KEY
`kylin_order_express_order_express_id_index`
(
`order_express_id`
),
PRIMARY
KEY
(
`mid`
)
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
COMMENT
'订单快递表'
;
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
'订单快递表'
;
drop
TABLE
if
exists
`kylin_order_express`
;
CREATE
TABLE
`kylin_refund_pic`
(
`mid`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`refund_pic_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'refund_pic_id'
,
`order_refunds_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单退款表id'
,
`pic_url`
tinyint
NOT
NULL
DEFAULT
'0'
COMMENT
'图片地址'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
KEY
`kylin_order_express_order_express_id_index`
(
`refund_pic_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
COMMENT
'订单快递表'
;
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