/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1
 Source Server Type    : MySQL
 Source Server Version : 80034
 Source Host           : 127.0.0.1:3306
 Source Schema         : cvdemcs

 Target Server Type    : MySQL
 Target Server Version : 80034
 File Encoding         : 65001

 Date: 24/06/2024 22:22:44
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for device_point
-- ----------------------------
DROP TABLE IF EXISTS `device_point`;
CREATE TABLE `device_point`  (
  `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `device_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '控制器Id',
  `equipment_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备Id',
  `point_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '点位编号',
  `point_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '点位名称',
  `address` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'S7 数据存储地址，直连 存储区地址',
  `data_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '数据类型',
  `action_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '点位所属动作，启动停止：StartStop；故障：Fault',
  `activated` bit(1) NOT NULL DEFAULT b'1' COMMENT 'PLC 点位是否启用 (1 启用, 0 禁用)',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  `create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '创建者',
  `create_at` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '修改者',
  `update_at` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `is_delete` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `delete_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '删除者',
  `delete_at` datetime NULL DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'PLC点位' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of device_point
-- ----------------------------
INSERT INTO `device_point` VALUES ('1139430652538703872', '1139430641660118767', '1139430644415823872', '5#StartStop', '5#运行/停止', 'V100.0', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:47:45', '1', '2023-11-01 22:47:45', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430652834844573', '1139430641660118767', '1139430644415823872', '5#Alarm', '5#报警', 'V100.1', 'System.Boolean', 'Alert', b'1', '', '1', '2023-11-01 22:48:57', '1', '2023-11-01 22:48:57', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430652834844672', '1139430641660118767', '1139430644415823872', '5#Fault', '5#故障', 'V100.2', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:48:57', '1', '2023-11-01 22:48:57', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653154721792', '1139430641660118767', '1139430644789067776', '6#StartStop', '6#运行/停止', 'V100.3', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:50:15', '1', '2023-11-01 22:50:15', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653293719552', '1139430641660118767', '1139430644789067776', '6#Fault', '6#故障', 'V100.5', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:50:49', '1', '2023-11-01 22:50:49', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653293719663', '1139430641660118767', '1139430644789067776', '6#Alarm', '6#报警', 'V100.4', 'System.Boolean', 'Alarm', b'1', '', '1', '2023-11-01 22:50:49', '1', '2023-11-01 22:50:49', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653565784064', '1139430641660118767', '1139430644475174912', '7#StartStop', '7#运行/停止', 'V100.6', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:51:55', '1', '2023-11-01 22:51:55', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653695045632', '1139430641660118767', '1139430644475174912', '7#Fault', '7#故障', 'V100.7', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:52:27', '1', '2023-11-01 22:52:27', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653695045643', '1139430641660118767', '1139430644475174912', '7#Alarm', '7#报警', 'V101.0', 'System.Boolean', 'Alarm', b'1', '', '1', '2023-11-01 22:52:27', '1', '2023-11-01 22:52:27', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430653912072192', '1139430641660118767', '1139430644855181312', '8#StartStop', '8#运行/停止', 'V101.1', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:53:20', '1', '2023-11-01 22:53:20', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430654035652608', '1139430641660118767', '1139430644855181312', '8#Fault', '8#故障', 'V101.3', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:53:50', '1', '2023-11-01 22:53:50', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430654035652619', '1139430641660118767', '1139430644855181312', '8#Alarm', '8#报警', 'V101.2', 'System.Boolean', 'Alarm', b'1', '', '1', '2023-11-01 22:53:50', '1', '2023-11-01 22:53:50', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430654315429888', '1139430641660118767', '1139430644904493056', '10#StartStop', '10#运行/停止', 'V101.6', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:54:58', '1', '2023-11-01 22:54:58', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430654377500672', '1139430641660118767', '1139430644904493056', '10#Fault', '10#故障', 'V101.7', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:55:14', '1', '2023-11-01 22:55:14', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430654608003072', '1139430641660118767', '1139430644494802944', '27#StartStop', '27#运行/停止', 'V105.4', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:56:10', '1', '2023-11-01 22:56:10', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430654678110208', '1139430641660118767', '1139430644494802944', '27#Fault', '27#故障', 'V105.5', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:56:27', '1', '2023-11-01 22:56:27', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430655076130816', '1139430641660118767', '1139430644963524608', '11#StartStop', '11#运行/停止', 'V102.0', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 22:58:04', '1', '2023-11-01 22:58:04', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430655186042880', '1139430641660118767', '1139430644963524608', '11#Fault', '11#故障', 'V102.1', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 22:58:31', '1', '2023-11-01 22:58:31', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430655586398208', '1139430641660118767', '1139430644997632000', '14#StartStop', '14#运行/停止', 'V102.6', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:00:09', '1', '2023-11-01 23:00:09', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430655924822016', '1139430641660118767', '1139430644997632000', '14#Fault', '14#故障', 'V102.7', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:01:31', '1', '2023-11-01 23:01:31', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430656266252288', '1139430641660118767', '1139430645041299456', '15#StartStop', '15#运行/停止', 'V103.0', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:02:55', '1', '2023-11-01 23:02:55', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430656341700608', '1139430641660118767', '1139430645041299456', '15#Fault', '15#故障', 'V103.1', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:03:13', '1', '2023-11-01 23:03:13', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430656716185600', '1139430641660118767', '1139430645079994368', '17#StartStop', '17#运行/停止', 'V103.4', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:04:44', '1', '2023-11-01 23:04:44', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430656809283584', '1139430641660118767', '1139430645079994368', '17#Fault', '17#故障', 'V103.5', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:05:07', '1', '2023-11-01 23:05:07', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430657076408320', '1139430641660118767', '1139430645119148032', '18#StartStop', '18#运行/停止', 'V103.6', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:06:12', '1', '2023-11-01 23:06:12', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430657259327488', '1139430641660118767', '1139430645119148032', '18#Fault', '18#故障', 'V103.7', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:06:57', '1', '2023-11-01 23:06:57', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430657605267456', '1139430641660118767', '1139430645193863168', '20#StartStop', '20#运行/停止', 'V104.2', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:08:22', '1', '2023-11-01 23:08:22', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430657710931968', '1139430641660118767', '1139430645193863168', '20#Fault', '20#故障', 'V104.3', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:08:47', '1', '2023-11-01 23:08:47', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430658076295168', '1139430641660118767', '1139430645247967232', '21#StartStop', '21#运行/停止', 'V104.4', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:10:17', '1', '2023-11-01 23:10:17', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430658207510528', '1139430641660118767', '1139430645247967232', '21#Fault', '21#故障', 'V104.5', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:10:49', '1', '2023-11-01 23:10:49', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430658817884160', '1139430641660118767', '1139430645508157440', '9#StartStop', '9#运行/停止', 'V101.4', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:13:18', '1', '2023-11-01 23:13:18', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430658905145344', '1139430641660118767', '1139430645508157440', '9#Fault', '9#故障', 'V101.5', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:13:39', '1', '2023-11-01 23:13:39', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430659161649152', '1139430641660118767', '1139430645547446272', '12#StartStop', '12#运行/停止', 'V102.2', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:14:42', '1', '2023-11-01 23:14:42', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430659252658176', '1139430641660118767', '1139430645547446272', '12#Fault', '12#故障', 'V102.3', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:15:04', '1', '2023-11-01 23:15:04', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430659591573504', '1139430641660118767', '1139430645575229440', '13#StartStop', '13#运行/停止', 'V102.4', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:16:26', '1', '2023-11-01 23:16:26', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430659657920512', '1139430641660118767', '1139430645575229440', '13#Fault', '13#故障', 'V102.5', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:16:43', '1', '2023-11-01 23:16:43', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430659835154432', '1139430641660118767', '1139430645601857536', '16#StartStop', '16#运行/停止', 'V103.2', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:17:26', '1', '2023-11-01 23:17:26', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430659901124608', '1139430641660118767', '1139430645601857536', '16#Fault', '16#故障', 'V103.3', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:17:42', '1', '2023-11-01 23:17:42', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430660127326208', '1139430641660118767', '1139430645630369792', '19#StartStop', '19#运行/停止', 'V104.0', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:18:37', '1', '2023-11-01 23:18:37', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430660250324992', '1139430641660118767', '1139430645630369792', '19#Fault', '19#故障', 'V104.1', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:19:07', '1', '2023-11-01 23:19:07', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430660545531904', '1139430641660118767', '1139430645318582272', '23#StartStop', '23#运行/停止', 'V105.0', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:20:19', '1', '2023-11-01 23:20:19', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430660641312768', '1139430641660118767', '1139430645318582272', '23#Fault', '23#故障', 'V105.1', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:20:43', '1', '2023-11-01 23:20:43', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430661001457664', '1139430641660118767', '1139430645348077568', '28#StartStop', '28#运行/停止', 'V105.6', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:22:11', '1', '2023-11-01 23:22:11', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430661088616448', '1139430641660118767', '1139430645348077568', '28#Fault', '28#故障', 'V105.7', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:22:32', '1', '2023-11-01 23:22:32', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430661257043968', '1139430641660118767', '1139430645381705728', '22#StartStop', '22#运行/停止', 'V104.6', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:23:13', '1', '2023-11-01 23:23:13', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430661344280576', '1139430641660118767', '1139430645381705728', '22#Fault', '22#故障', 'V104.7', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:23:34', '1', '2023-11-01 23:23:34', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430661591023616', '1139430641660118767', '1139430645415247872', '24#StartStop', '24#运行/停止', 'V105.2', 'System.Boolean', 'StartStop', b'1', '', '1', '2023-11-01 23:24:35', '1', '2023-11-01 23:24:35', b'0', NULL, NULL);
INSERT INTO `device_point` VALUES ('1139430661655056384', '1139430641660118767', '1139430645415247872', '24#Fault', '24#故障', 'V105.3', 'System.Boolean', 'Fault', b'1', '', '1', '2023-11-01 23:24:50', '1', '2023-11-01 23:24:50', b'0', NULL, NULL);

SET FOREIGN_KEY_CHECKS = 1;
