Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dankal-data-view
Overview
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
仲光辉
dankal-data-view
Commits
1211bfb2
Commit
1211bfb2
authored
Jul 01, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add sql
parent
72062bc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
拉伽-4_0.sql
拉伽-4_0/拉伽-4_0.sql
+28
-1
No files found.
拉伽-4_0/拉伽-4_0.sql
View file @
1211bfb2
alter
table
store
alter
table
store
...
...
@@ -119,3 +119,29 @@ alter table user_card
create
index
idx_daily_pay_order_id
on
user_card
(
daily_pay_order_id
);
CREATE
TABLE
IF
NOT
EXISTS
`daily_pay_open_card_log`
(
`id`
BIGINT
NOT
NULL
COMMENT
'雪花算法ID'
,
`user_uuid`
BIGINT
NOT
NULL
COMMENT
'用户ID'
,
`card_uuid`
BIGINT
NOT
NULL
COMMENT
'卡UUID'
,
`user_card_uuid`
BIGINT
NOT
NULL
COMMENT
'用户卡UUID'
,
`daily_pay_order_no`
VARCHAR
(
150
)
NOT
NULL
COMMENT
'每日付订单号'
,
`daily_pay_period`
INT
NOT
NULL
COMMENT
'每日付期数'
,
`daily_pay_product_id`
VARCHAR
(
150
)
NOT
NULL
COMMENT
'每日付商品ID'
,
`daily_pay_product_no`
VARCHAR
(
150
)
NOT
NULL
COMMENT
'每日付商品编号'
,
`daily_pay_product_name`
VARCHAR
(
255
)
NOT
NULL
COMMENT
'每日付商品名称'
,
`open_card_result_info`
TEXT
COMMENT
'开卡结果信息'
,
`open_card_result_status`
INT
NOT
NULL
DEFAULT
0
COMMENT
'开卡结果状态 0:失败 1:成功'
,
`create_time`
DATETIME
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间 创建默认填充'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'每日付开卡日志'
;
-- 添加索引
-- user_uuid 索引
CREATE
INDEX
idx_user_uuid
ON
daily_pay_open_card_log
(
user_uuid
);
-- user_card_uuid 索引
CREATE
INDEX
idx_user_card_uuid
ON
daily_pay_open_card_log
(
user_card_uuid
);
-- daily_pay_order_no 索引
CREATE
INDEX
idx_daily_pay_order_no
ON
daily_pay_open_card_log
(
daily_pay_order_no
);
\ 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