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
7fe0144b
Commit
7fe0144b
authored
Jan 13, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add sql
parent
b281c654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
app-im.sql
电子日历/app-im.sql
+29
-1
No files found.
电子日历/app-im.sql
View file @
7fe0144b
-- 用户
设备IM
-- 用户
设备IM
...
@@ -25,3 +25,31 @@ alter table t_user_device_im
...
@@ -25,3 +25,31 @@ alter table t_user_device_im
add
constraint
t_user_device_im_pk
add
constraint
t_user_device_im_pk
unique
(
im_user_id
);
unique
(
im_user_id
);
create
table
t_im_push_app
(
id
bigint
not
null
comment
'ID'
primary
key
,
device_id
bigint
not
null
comment
'设备ID'
,
message_type
tinyint
not
null
comment
'消息类型: 0-清单 1-分类 2-事项 3-杂物 ;4-增加照片 5-删除照片;6-晚餐计划 7:用户关联设备成功 8:用户解绑设备成功'
,
business_id_list
text
null
comment
'业务ID列表'
,
push_time
datetime
null
comment
'推送时间'
,
status
tinyint
default
0
not
null
comment
'状态: 0-未推送 1-已推送'
,
create_time
datetime
default
CURRENT_TIMESTAMP
not
null
comment
'创建时间'
,
update_time
datetime
default
CURRENT_TIMESTAMP
not
null
on
update
CURRENT_TIMESTAMP
comment
'更新时间'
)
comment
'APP IM 推送表'
collate
=
utf8mb4_general_ci
;
create
index
idx_device_id
on
t_im_push
(
message_type
);
create
index
idx_device_id_message_type
on
t_im_push
(
device_id
,
message_type
);
create
index
idx_push_time
on
t_im_push
(
push_time
);
create
index
idx_update_time
on
t_im_push
(
update_time
);
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