高速设备状态
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.0 KiB

/*
Navicat Premium Data Transfer
Source Server : mysql8
Source Server Type : MySQL
Source Server Version : 80027
Source Host : 39.106.31.193:3307
Source Schema : device
Target Server Type : MySQL
Target Server Version : 80027
File Encoding : 65001
Date: 05/01/2024 09:34:02
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for device
-- ----------------------------
DROP TABLE IF EXISTS `device`;
CREATE TABLE `device` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '设备ID',
`device_no` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '设备编号',
`device_name` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '设备名称',
`device_ip` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '设备IP',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin;
-- ----------------------------
-- Records of device
-- ----------------------------
BEGIN;
INSERT INTO `device` VALUES (1, '1001', '千里眼', '192.168.1');
INSERT INTO `device` VALUES (2, '1002', '智慧眼', '192.168.2');
INSERT INTO `device` VALUES (3, '1003', '摄像机', '192.168.3');
INSERT INTO `device` VALUES (4, '1004', '随身行', '10.168.77.88');
COMMIT;
-- ----------------------------
-- Table structure for status
-- ----------------------------
DROP TABLE IF EXISTS `status`;
CREATE TABLE `status` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '设备状态ID',
`device_no` varchar(30) COLLATE utf8_bin DEFAULT NULL COMMENT '设备编号',
`device_name` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '设备名称',
`device_status` int DEFAULT NULL COMMENT '设备状态',
`time` datetime DEFAULT NULL COMMENT '插入时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin;
-- ----------------------------
-- Records of status
-- ----------------------------
BEGIN;
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;