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
be78b547
Commit
be78b547
authored
Aug 15, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add Google Calendar notification retry table and related indexes
parent
8b754e75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
Google增量同步.sql
电子日历_Google增量同步/Google增量同步.sql
+38
-1
No files found.
电子日历_Google增量同步/Google增量同步.sql
View file @
be78b547
alter
table
t_third_party_calendar_list
alter
table
t_third_party_calendar_list
alter
table
t_third_party_calendar_list
alter
table
t_third_party_calendar_list
add
next_sync_token
varchar
(
200
)
null
comment
'Google增量查询 nextSyncToken'
;
add
next_sync_token
varchar
(
200
)
null
comment
'Google增量查询 nextSyncToken'
;
create
table
t_google_calendar_notification_retry
(
id
bigint
not
null
comment
'ID'
primary
key
,
channel_id
varchar
(
200
)
charset
utf8mb4
not
null
comment
'X-Goog-Channel-ID %d-%d deviceId#thirdPartyCalendarAuthId'
,
device_id
bigint
null
comment
'device id'
,
third_party_calendar_auth_id
bigint
null
comment
'thirdPartyCalendarAuthId'
,
resource_id
varchar
(
200
)
charset
utf8mb4
not
null
comment
'Google Resource ID calendarId'
,
resource_state
varchar
(
32
)
charset
utf8mb4
not
null
comment
'Resource State'
,
message_number
bigint
not
null
comment
'Message Number'
,
resource_uri
varchar
(
512
)
charset
utf8mb4
not
null
comment
'Resource URI'
,
token
varchar
(
256
)
charset
utf8mb4
null
comment
'Channel Token'
,
expiration
varchar
(
50
)
charset
utf8mb4
null
comment
'Channel Expiration'
,
error_count
int
not
null
default
0
comment
'Error Count'
,
google_calendar_notification_id
bigint
null
comment
'Google Calendar Notification ID'
,
create_time
datetime
default
CURRENT_TIMESTAMP
not
null
comment
'Create Time'
)
comment
'Google Calendar Notification Retry'
;
#
channel_id
unique
index
create
unique
index
idx_channel_id
on
t_google_calendar_notification_retry
(
channel_id
);
create
index
idx_channel_id_resource_id
on
t_google_calendar_notification_retry
(
channel_id
,
resource_id
);
create
index
idx_create_time
on
t_google_calendar_notification_retry
(
create_time
);
create
index
idx_device_id_third_party_calendar_auth_id
on
t_google_calendar_notification_retry
(
device_id
,
third_party_calendar_auth_id
);
create
index
idx_third_party_calendar_auth_id
on
t_google_calendar_notification_retry
(
third_party_calendar_auth_id
);
\ 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