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 1bce8982
authored
Apr 08, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加SQL建表语句
1 parent
7f3d7e90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
1.6.0_四月/1.6.0数据库SQL脚本.sql
1.6.0_四月/1.6.0数据库SQL脚本.sql
View file @
1bce898
CREATE
TABLE
`t_alarm_electric_fence`
(
id
INT
(
11
)
NOT
NULL
AUTO_INCREMENT
,
sn
VARCHAR
(
20
)
DEFAULT
NULL
COMMENT
'设备号'
,
svc_system_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'子系统标识'
,
fence_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'电子栅栏ID'
,
fence_type
TINYINT
(
2
)
DEFAULT
NULL
COMMENT
'电子栅栏类型 1驶入,2驶出,3:驶入驶出报警'
,
trigger_type
INT
(
11
)
DEFAULT
NULL
COMMENT
'触发类型 1驶入,2驶出'
,
loc_info_type
INT
(
11
)
DEFAULT
NULL
COMMENT
'位置类型 1gps,2基站'
,
lng
VARCHAR
(
15
)
DEFAULT
NULL
COMMENT
'经度'
,
lat
VARCHAR
(
15
)
DEFAULT
NULL
COMMENT
'纬度'
,
address
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'报警地址'
,
speed
VARCHAR
(
10
)
DEFAULT
NULL
COMMENT
'速度'
,
direction
VARCHAR
(
10
)
DEFAULT
NULL
COMMENT
'方向'
,
alarm_time
DATETIME
DEFAULT
NULL
COMMENT
'预警时间'
,
alt
VARCHAR
(
10
)
DEFAULT
NULL
COMMENT
'海拔'
,
alarmRange
VARCHAR
(
100
)
DEFAULT
NULL
COMMENT
'预警时间段'
,
vd_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'车辆设备关系表id'
,
del_flag
TINYINT
(
2
)
DEFAULT
0
COMMENT
'是否删除 0=正常 -1=删除 报警可见性,非报警时间段不可见;0可见, -1不可见'
,
created_date
DATETIME
DEFAULT
NULL
COMMENT
'创建时间|入库时间'
,
created_by
INT
(
11
)
DEFAULT
NULL
COMMENT
'创建人用户id'
,
updated_date
DATETIME
DEFAULT
NULL
COMMENT
'更新时间'
,
updated_by
INT
(
11
)
DEFAULT
NULL
COMMENT
'更新人用户id'
,
PRIMARY
KEY
(
`id`
),
KEY
`sn_index`
(
`sn`
)
)
ENGINE
=
INNODB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8
COMMENT
=
'新e盾|围栏报警数据表'
;
\ 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