记得上下班打卡 | 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
e13ab1b6
Commit
e13ab1b6
authored
Oct 19, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增sql文件
parent
62e25376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
dev_stone.sql
docu/dev_stone.sql
+21
-8
No files found.
docu/dev_stone.sql
View file @
e13ab1b6
...
@@ -20,14 +20,14 @@ create table stone_score_items
...
@@ -20,14 +20,14 @@ create table stone_score_items
img
varchar
(
64
)
default
''
comment
'展示图'
,
img
varchar
(
64
)
default
''
comment
'展示图'
,
score
decimal
(
8
,
2
)
default
0
comment
'所需积分'
,
score
decimal
(
8
,
2
)
default
0
comment
'所需积分'
,
price
decimal
(
8
,
2
)
default
0
comment
'所需金额'
,
price
decimal
(
8
,
2
)
default
0
comment
'所需金额'
,
general_total
int
default
0
comment
'总库存[-
1
-不限]'
,
general_total
int
default
0
comment
'总库存[-
999
-不限]'
,
general_surplus
int
default
0
comment
'剩余库存'
,
general_surplus
int
default
0
comment
'剩余库存'
,
limit_count
int
default
0
comment
'限购数量[0-不限]'
,
limit_count
int
default
0
comment
'限购数量[0-不限]'
,
details
longtext
default
NULL
comment
'商品详情'
,
details
longtext
default
NULL
comment
'商品详情'
,
notice
longtext
default
NULL
comment
'注意事项'
,
notice
longtext
default
NULL
comment
'注意事项'
,
status
int
default
0
comment
'状态[-1-删除|0-未上架|1-已上架|2-定时上架]'
,
status
int
default
0
comment
'状态[-1-删除|0-未上架|1-已上架|2-定时上架]'
,
start_time
datetime
NULLABLE
COMMENT
'定时上架-
起始
时间'
,
start_time
datetime
NULLABLE
COMMENT
'定时上架-时间'
,
end_time
datetime
NULLABLE
COMMENT
'定时
上架-终止
时间'
,
end_time
datetime
NULLABLE
COMMENT
'定时
下架-
时间'
,
created_at
datetime
,
created_at
datetime
,
updated_at
datetime
,
updated_at
datetime
,
comment
text
comment
text
...
@@ -38,8 +38,7 @@ create table stone_score_user
...
@@ -38,8 +38,7 @@ create table stone_score_user
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
uid
varchar
(
64
)
default
''
comment
'用户id'
,
uid
varchar
(
64
)
default
''
comment
'用户id'
,
score_surplus
decimal
(
8
,
2
)
default
0
comment
'可用积分'
,
status
int
default
1
comment
'状态[0-冻结|1-正常]'
,
score_used
decimal
(
8
,
2
)
default
0
comment
'医用积分'
,
created_at
datetime
,
created_at
datetime
,
updated_at
datetime
,
updated_at
datetime
,
comment
text
comment
text
...
@@ -50,9 +49,23 @@ create table stone_score_order
...
@@ -50,9 +49,23 @@ create table stone_score_order
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
uid
varchar
(
64
)
default
''
comment
'用户id'
,
uid
varchar
(
64
)
default
''
comment
'用户id'
,
score_surplus
decimal
(
8
,
2
)
default
0
comment
'可用积分'
,
user_name
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户昵称'
,
score_used
decimal
(
8
,
2
)
default
0
comment
'已用积分'
,
user_mobile
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户手机号'
,
target_title
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'物品名称'
,
order_code
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单号'
,
number
int
(
32
)
NOT
NULL
DEFAULT
0
COMMENT
'数量'
,
price
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'单价'
,
score
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'积分'
,
price_express
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'快递价格'
,
price_actual
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'实付价格'
,
pay_type
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'选择支付方式[SCORE-积分]'
,
payment_type
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'实际支付方式[SCORE-积分]'
,
payment_id
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'支付的订单号'
,
time_pay
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'支付时间'
,
pay_countdown_minute
int
(
32
)
NOT
NULL
DEFAULT
15
COMMENT
'订单过期时间(分钟)'
,
status
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'订单状态[0-待付款|1-已付款|2-已关闭|3-正在退款|4-已退款|5-待关闭|6-部分退款]'
,
pay_status
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'支付状态[0-未支付|1-已支付|2-支付失败]'
,
created_at
datetime
,
created_at
datetime
,
updated_at
datetime
,
updated_at
datetime
,
comment
text
comment
text
)
engine
=
InnoDB
comment
'积分用户表'
;
)
engine
=
InnoDB
comment
'积分订单表'
;
\ No newline at end of file
\ 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