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
ad428d3a
Commit
ad428d3a
authored
Aug 23, 2024
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add sql
parent
4865659d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
线上需要同步的SQL.sql
拉伽/线上需要同步的SQL.sql
+23
-23
No files found.
拉伽/线上需要同步的SQL.sql
View file @
ad428d3a
#
CRE
ATE
TABLE
`api_client_credentials`
#
CRE
ATE
TABLE
`api_client_credentials`
...
...
@@ -335,28 +335,28 @@
#
drop
column
validity_unit
;
#
2024
-
08
-
20
---
CREATE
TABLE
`user_card_coach`
(
`uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'主键'
,
`coach_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'教练UUID store_staff#uuid'
,
`coach_name`
varchar
(
30
)
NOT
NULL
COMMENT
'教练名称 store_staff#name'
,
`user_card_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'会员卡UUID user_card#uuid'
,
`is_delete`
tinyint
(
1
)
UNSIGNED
NOT
NULL
DEFAULT
0
COMMENT
'是否删除 0:未删除 1:已删除'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`uuid`
),
UNIQUE
KEY
`uk_coach_user_card`
(
`coach_uuid`
,
`user_card_uuid`
),
KEY
`idx_user_card_uuid`
(
`user_card_uuid`
),
KEY
`idx_coach_uuid`
(
`coach_uuid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'会员卡授课教练信息'
;
alter
table
user_card
modify
coach_name
text
null
comment
'授课教练名称,多教练英文逗号分隔 store_staff#name'
;
alter
table
user_card
modify
coach_uuid
text
null
comment
'授课教练uuid,多教练英文逗号分隔 store_staff#uuid'
;
alter
table
store
add
user_card_show_status
tinyint
(
1
)
default
1
null
comment
'用户端会员卡显示状态 0:不显示 1:显示 默认 1'
;
#
CREATE
TABLE
`user_card_coach`
(
#
`uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'主键'
,
#
`coach_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'教练UUID store_staff#uuid'
,
#
`coach_name`
varchar
(
30
)
NOT
NULL
COMMENT
'教练名称 store_staff#name'
,
#
`user_card_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'会员卡UUID user_card#uuid'
,
#
`is_delete`
tinyint
(
1
)
UNSIGNED
NOT
NULL
DEFAULT
0
COMMENT
'是否删除 0:未删除 1:已删除'
,
#
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
#
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
#
PRIMARY
KEY
(
`uuid`
),
#
UNIQUE
KEY
`uk_coach_user_card`
(
`coach_uuid`
,
`user_card_uuid`
),
#
KEY
`idx_user_card_uuid`
(
`user_card_uuid`
),
#
KEY
`idx_coach_uuid`
(
`coach_uuid`
)
#
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'会员卡授课教练信息'
;
#
#
alter
table
user_card
#
modify
coach_name
text
null
comment
'授课教练名称,多教练英文逗号分隔 store_staff#name'
;
#
#
alter
table
user_card
#
modify
coach_uuid
text
null
comment
'授课教练uuid,多教练英文逗号分隔 store_staff#uuid'
;
#
#
alter
table
store
#
add
user_card_show_status
tinyint
(
1
)
default
1
null
comment
'用户端会员卡显示状态 0:不显示 1:显示 默认 1'
;
...
...
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