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
4cfdf865
Commit
4cfdf865
authored
Feb 25, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:- add sql
parent
a4e441de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
p1.sql
AI闹钟/p1.sql
+49
-1
No files found.
AI闹钟/p1.sql
View file @
4cfdf865
alter
table
t_device_group
alter
table
t_device_group
...
...
@@ -53,3 +53,51 @@ CREATE INDEX `idx_device_group_id` ON `t_device_serial_number` (`device_group_id
-- 设备序列号表唯一索引
CREATE
UNIQUE
INDEX
`idx_system_device_serial_number`
ON
`t_device_serial_number`
(
`system_device_serial_number`
);
-- 用户ID 设置为非必填(AI闹钟扫描分享无法确定用户)
alter
table
t_user_device_share_code
modify
user_id
bigint
null
comment
'用户 ID 设置为非必填(AI闹钟扫描分享无法确定用户)'
;
-- 设备码长度变长
alter
table
t_user_device_share_code
modify
share_code
varchar
(
220
)
null
comment
'分享码'
;
-- 创建唯一索引
create
unique
index
idx_share_code
on
t_user_device_share_code
(
share_code
)
comment
'分享码'
;
-- 设备类型 0:相框 1:AI闹钟 default 0
alter
table
t_user_device_share_code
add
device_type
tinyint
default
0
null
comment
'设备类型 0:相框 1:AI闹钟 default 0'
after
device_id
;
-- 完善字段注释说明
alter
table
t_user_device_share_code
modify
valid_time
datetime
null
comment
'分享码有效时间,为空则表示长期有效.(扫描分享:设备未绑定二维码长期有效)'
;
-- 新增设备名称字段
alter
table
t_user_device_codes
add
device_name
varchar
(
200
)
null
comment
'用户创建设备输入的设备名称'
after
device_id
;
-- 移动设备类型字段位置
alter
table
t_user_device_codes
modify
device_type
tinyint
default
0
not
null
comment
'设备类型 0:相框 1:AI闹钟 default 0'
after
device_name
;
-- 完善字段注释说明
alter
table
t_user_device_share_code
modify
device_id
bigint
not
null
comment
'设备 ID (设备数据跟随的是虚拟设备) t_user_device_codes#deviceId'
;
alter
table
t_im_push
modify
message_type
tinyint
not
null
comment
'消息类型: 0-清单 1-分类 2-事项 3-杂物 ;4-增加照片 5-删除照片;6-晚餐计划 7:用户关联设备成功 8:用户解绑设备成功 9:餐食分类 10:食谱 11:餐食计划 12:增加照片相册 13:编辑照片相册 14:删除照片相册 15:第三方日历订阅状态更新 16:增加贺卡 17:删除贺卡 18:贺卡自动播放 19:撤回贺卡 20: AI闹钟绑定成功'
;
alter
table
t_im_push_app
modify
message_type
tinyint
not
null
comment
'消息类型: 0-清单 1-分类 2-事项 3-杂物 ;4-增加照片 5-删除照片;6-晚餐计划 7:用户关联设备成功 8:用户解绑设备成功 9:餐食分类 10:食谱 11:餐食计划 12:增加照片相册 13:编辑照片相册 14:删除照片相册 15:第三方日历订阅状态更新 16:增加贺卡 17:删除贺卡 18:贺卡自动播放 19:撤回贺卡 20: AI闹钟绑定成功'
;
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