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
96c30932
Commit
96c30932
authored
Jun 17, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add sql
parent
c1505d7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
拉伽-4_0.sql
拉伽-4_0/拉伽-4_0.sql
+17
-1
No files found.
拉伽-4_0/拉伽-4_0.sql
View file @
96c30932
alter
table
store
alter
table
store
...
@@ -52,3 +52,19 @@ alter table card
...
@@ -52,3 +52,19 @@ alter table card
-- 表: 每日付关联会员卡关联门店信息
CREATE
TABLE
IF
NOT
EXISTS
`daily_pay_card_store`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`card_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'card.uuid'
,
`store_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'store.uuid'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`uk_member_card_store`
(
`card_uuid`
,
`store_uuid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'每日付关联会员卡关联门店信息'
;
-- idx: store_uuid
CREATE
INDEX
`idx_store_uuid`
ON
`daily_pay_card_store`
(
`store_uuid`
);
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