| | |
| | | primary key (channelId, deviceId) |
| | | ); |
| | | |
| | | create table device_alarm |
| | | ( |
| | | id int auto_increment |
| | | primary key, |
| | | deviceId varchar(50) not null, |
| | | alarmPriority varchar(50) not null, |
| | | alarmMethod varchar(50), |
| | | alarmTime varchar(50) not null, |
| | | alarmDescription varchar(255), |
| | | longitude double null, |
| | | latitude double null, |
| | | alarmType varchar(50) |
| | | ); |
| | | |
| | | |
| | | |
| | | create table device_mobile_position |
| | | ( |
| | | deviceId varchar(50) not null, |
| | |
| | | username varchar(255) not null, |
| | | password varchar(255) not null, |
| | | roleId int not null, |
| | | create_time varchar(50) not null |
| | | create_time varchar(50) not null, |
| | | update_time varchar(50) not null |
| | | ); |
| | | |
| | | insert into user (username, password, roleId, create_time) values ('admin', '21232f297a57a5a743894a0e4a801fc3', '0', '2021-04-13 14:14:57'); |
| | | insert into user (username, password, roleId, create_time, update_time) values ('admin', '21232f297a57a5a743894a0e4a801fc3', '0', '2021-04-13 14:14:57', '2021-04-13 14:14:57'); |
| | | |