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
b2fc05fc
Commit
b2fc05fc
authored
Apr 21, 2024
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add yago 2.0.0 update sql
parent
63e17e52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
线上需要同步的SQL.sql
拉伽/线上需要同步的SQL.sql
+69
-0
No files found.
拉伽/线上需要同步的SQL.sql
0 → 100644
View file @
b2fc05fc
CREATE
TABLE
`api_client_credentials`
CREATE
TABLE
`api_client_credentials`
(
`id`
BIGINT
NOT
NULL
AUTO_INCREMENT
COMMENT
'唯一标识符'
,
`grant_type`
TINYINT
NOT
NULL
COMMENT
'授权类型,0:表示cp'
,
`client_id`
CHAR
(
32
)
NOT
NULL
COMMENT
'客户端ID'
,
`client_secret`
VARCHAR
(
150
)
NOT
NULL
COMMENT
'客户端秘钥'
,
`type`
TINYINT
DEFAULT
0
COMMENT
'令牌类型,0:表示bearer'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'API客户端认证信息表'
;
create
index
idx_client_id
on
api_client_credentials
(
client_id
);
alter
table
user
add
member_registration_source
tinyint
(
1
)
default
0
null
comment
'会员注册来源 0:拉伽 1:ClassPath小程序 default 0'
;
alter
table
user
alter
column
birthday_type
set
default
0
;
alter
table
store_course
add
course_id
VARCHAR
(
50
)
null
comment
'课程ID 用于和 ClassPass 交互使用'
;
create
index
idx_course_id
on
store_course
(
course_id
);
alter
table
store_schedules
add
cp_size
int
default
0
null
comment
'开放CP固定席位(人)'
after
size
;
alter
table
user_card_subscribe_logs
add
reservation_source
tinyint
(
1
)
default
0
null
comment
'预约来源 0:拉伽 1:ClassPass小程序 默认:0'
;
alter
table
user_card_subscribe_logs
add
reservation_tag
tinyint
(
1
)
default
0
null
comment
'预约标签 0:无标签 1:CP 默认:0'
;
create
index
idx_schedules_uuid_course_uuid
on
user_card_subscribe_logs
(
schedules_uuid
,
course_uuid
);
create
index
idx_status_reservation_source
on
user_card_subscribe_logs
(
status
,
reservation_source
);
create
index
idx_course_uuid
on
store_schedules
(
course_uuid
);
create
index
idx_staff_uuid
on
store_schedules
(
staff_uuid
);
alter
table
user
modify
phone
varchar
(
50
)
not
null
comment
'手机号'
;
alter
table
user
add
cp_user_id
varchar
(
100
)
null
comment
'cp user id (class pass user id)'
;
create
index
idx_cp_user_id
on
user
(
cp_user_id
);
create
index
idx_phone
on
user
(
phone
);
alter
table
user_card_subscribe_logs
add
cp_booking_id
varchar
(
100
)
null
comment
'class pass booking id'
;
create
index
idx_cp_booking_id
on
user_card_subscribe_logs
(
cp_booking_id
);
alter
table
user_card_subscribe_logs
modify
user_phone
varchar
(
50
)
null
comment
'用户手机号'
;
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