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 bf81fd02
authored
May 05, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
超速记录
1 parent
15800576
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
1.7.0_五月/1.7.0数据库SQL脚本.sql
1.7.0_五月/1.7.0数据库SQL脚本.sql
View file @
bf81fd0
...
@@ -59,3 +59,26 @@ CREATE TABLE `t_alarm_track_rec` (
...
@@ -59,3 +59,26 @@ CREATE TABLE `t_alarm_track_rec` (
KEY
`sn_index`
(
`sn`
),
KEY
`sn_index`
(
`sn`
),
KEY
`vd_id_index`
(
`vd_id`
)
KEY
`vd_id_index`
(
`vd_id`
)
)
ENGINE
=
INNODB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
COMMENT
=
'设备警情报警'
;
)
ENGINE
=
INNODB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
COMMENT
=
'设备警情报警'
;
-- 设备超速记录表
create
table
t_device_speeding
(
id
int
auto_increment
primary
key
,
sn
varchar
(
64
)
null
comment
'设备号'
,
vd_id
int
(
11
)
default
0
null
comment
'车辆、设备关系id'
,
begin_time
datetime
null
comment
'超速开始时间'
,
end_time
datetime
null
comment
'超速结束时间'
,
duration
bigint
null
comment
'超速时长,以秒为单位'
,
average_speed
double
null
comment
'超速平均速度,单位km/h'
,
del_flag
tinyint
default
0
null
comment
'是否删除 0=正常 -1=删除'
,
created_date
datetime
null
comment
'创建时间|入库时间'
,
created_by
int
(
11
)
null
comment
'创建人用户id'
,
updated_date
datetime
null
comment
'更新时间'
,
updated_by
int
(
11
)
null
comment
'更新人用户id'
,
KEY
`idx_sn`
(
`sn`
),
KEY
`idx_vd_id`
(
`vd_id`
),
KEY
`idx_begin_time`
(
`begin_time`
),
unique
key
`uk_sn_vd`
(
`sn`
,
`vd_id`
)
)
comment
'设备超速记录表'
;
\ No newline at end of file
\ No newline at end of file
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