Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-opsdoc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73988ec0
authored
Apr 17, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加电量索引
1 parent
5e45d20c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
1.6.0_四月/1.6.0数据库SQL脚本.sql
1.6.0_四月/1.6.0数据库SQL脚本.sql
View file @
73988ec
...
...
@@ -39,7 +39,7 @@ create table t_device_journey_overview
id
int
(
11
)
auto_increment
comment
'里程主键ID'
primary
key
,
sn
varchar
(
32
)
null
comment
'设备序列号'
,
vd_id
int
(
11
)
null
comment
'车辆、设备关系id'
,
vd_id
int
(
11
)
default
0
null
comment
'车辆、设备关系id'
,
total_journey_count
int
(
11
)
null
comment
'总行驶次数'
,
distance
int
(
11
)
null
comment
'总里程m'
,
del_flag
tinyint
default
0
null
comment
'是否删除 0=正常 -1=删除'
,
...
...
@@ -84,7 +84,7 @@ create table t_device_power
id
int
(
11
)
auto_increment
comment
'电量主键ID'
primary
key
,
sn
varchar
(
32
)
null
comment
'设备序列号'
,
vd_id
int
(
11
)
null
comment
'车辆、设备关系id'
,
vd_id
int
(
11
)
default
0
null
comment
'车辆、设备关系id'
,
alarm_time
datetime
null
comment
'电量上传时间'
,
soc
int
(
20
)
null
comment
'设备剩余电量'
,
del_flag
tinyint
default
0
null
comment
'是否删除 0=正常 -1=删除'
,
...
...
@@ -100,6 +100,8 @@ ALTER TABLE `t_device_power`
ADD
INDEX
idx_sn
(
`sn`
);
ALTER
TABLE
`t_device_power`
ADD
INDEX
idx_vd_id
(
`vd_id`
);
ALTER
TABLE
`t_device_power`
ADD
INDEX
idx_soc
(
`soc`
);
-- 短信模板
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment