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
78c28152
Commit
78c28152
authored
Jun 26, 2024
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add yoga sql
parent
bc042978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
3 deletions
+55
-3
线上需要同步的SQL.sql
拉伽/线上需要同步的SQL.sql
+55
-3
No files found.
拉伽/线上需要同步的SQL.sql
View file @
78c28152
#
CRE
ATE
TABLE
`api_client_credentials`
#
CRE
ATE
TABLE
`api_client_credentials`
...
...
@@ -162,11 +162,63 @@ alter table member_extension_info
add
constraint
member_extension_info_pk
unique
(
user_uuid
);
alter
table
store_staff
alter
table
user_card
add
coach_name
varchar
(
30
)
null
comment
'授课教练名称 store_staff#name'
;
alter
table
store_staff
alter
table
user_card
add
coach_uuid
BIGINT
null
comment
'授课教练uuid store_staff#uuid'
;
CREATE
TABLE
`user_card_fee_extension`
(
`user_card_fee_extension_id`
BIGINT
NOT
NULL
COMMENT
'会员卡费用拓展信息ID,使用雪花算法生成'
,
`user_card_uuid`
BIGINT
NOT
NULL
COMMENT
'会员卡UUID'
,
`coach_uuid`
BIGINT
NOT
NULL
COMMENT
'教练UUID store_staff#uuid'
,
`coach_name`
VARCHAR
(
30
)
NOT
NULL
COMMENT
'教练名称 store_staff#name'
,
`mobile`
VARCHAR
(
20
)
NULL
COMMENT
'教练手机号'
,
`gender`
TINYINT
(
1
)
NULL
COMMENT
'教练性别 1男2女;3-未知'
,
`coach_commission_rate`
DECIMAL
(
5
,
2
)
NOT
NULL
COMMENT
'教练提成比例,单位为百分比'
,
`coach_commission_amount`
DECIMAL
(
10
,
2
)
NOT
NULL
COMMENT
'教练提成金额'
,
`created_at`
TIMESTAMP
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'记录创建时间'
,
`updated_at`
TIMESTAMP
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'记录更新时间'
,
PRIMARY
KEY
(
`user_card_fee_extension_id`
),
INDEX
`idx_member_card_uuid`
(
`user_card_uuid`
),
INDEX
`idx_coach_uuid`
(
`coach_uuid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'会员卡费用拓展信息表'
;
alter
table
user_card
add
upload_voucher
text
null
comment
'上传凭证'
;
alter
table
store
add
user_show_status
tinyint
(
1
)
default
1
null
comment
'用户端显示状态 0:不显示 1:显示 默认 1'
;
alter
table
store
add
card_audit_status
tinyint
(
1
)
default
1
null
comment
'会员卡审核状态 0:不审核 1:审核 默认 1'
;
-- 表:user_card_audit_log
-- 会员卡审核记录
CREATE
TABLE
user_card_audit_log
(
user_card_audit_log_id
BIGINT
PRIMARY
KEY
COMMENT
'会员卡审核记录ID,采用雪花算法生成'
,
user_id
BIGINT
NOT
NULL
COMMENT
'用户ID'
,
user_card_uuid
BIGINT
NOT
NULL
COMMENT
'用户卡UUID'
,
record_id
BIGINT
NOT
NULL
COMMENT
'记录ID,同一条审核记录ID相同'
,
step
TINYINT
NOT
NULL
COMMENT
'审核步骤:0:待审核,2:审核通过,3:审核拒绝'
,
remarks
VARCHAR
(
200
)
COMMENT
'备注'
,
operate_time
DATETIME
NULL
COMMENT
'操作时间'
,
operate_uuid
CHAR
(
36
)
NOT
NULL
COMMENT
'操作人UUID'
,
operate_name
VARCHAR
(
255
)
NOT
NULL
COMMENT
'操作人名称'
,
create_time
datetime
default
CURRENT_TIMESTAMP
null
COMMENT
'创建时间'
,
update_time
datetime
default
CURRENT_TIMESTAMP
null
on
update
CURRENT_TIMESTAMP
COMMENT
'更新时间'
)
COMMENT
=
'会员卡审核记录表'
;
alter
table
user_card
add
audit_status
tinyint
(
1
)
default
1
null
comment
'会员卡审核状态:0:待审核 1:审核通过 2:审核驳回 default: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