dbpatch/202408/南网仓储/iot_machine_bind_20240805.sql

48 lines
1.8 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
任务IoT设备绑定与查看 增加菜单IOT设备管理
创建数据库 iot_machine_bind
*/
/*
Navicat Premium Data Transfer
Source Server : 公司测试库
Source Server Type : MySQL
Source Server Version : 80200
Source Host : 192.168.0.14:2009
Source Schema : ma_sgzb_nw
Target Server Type : MySQL
Target Server Version : 80200
File Encoding : 65001
Date: 05/08/2024 10:15:28
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for iot_machine_bind
-- ----------------------------
DROP TABLE IF EXISTS `iot_machine_bind`;
CREATE TABLE `iot_machine_bind` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键id',
`iot_id` bigint NOT NULL COMMENT 'iot设备id',
`type_id` bigint NULL DEFAULT NULL COMMENT '设备类型id',
`ma_code` varchar(90) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '被绑定机具编号',
`binder` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '绑定人',
`bind_time` datetime(0) NULL DEFAULT NULL COMMENT '绑定时间',
`unbinder` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '解绑人',
`unbind_time` datetime(0) NULL DEFAULT NULL COMMENT '解绑时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'iot设备类型绑定表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of iot_machine_bind
-- ----------------------------
INSERT INTO `iot_machine_bind` VALUES (13, 13, 690, 'NXCS004', '1', '2024-07-11 18:31:08', '1', '2024-07-11 18:31:11');
INSERT INTO `iot_machine_bind` VALUES (14, 13, 690, 'NXCS004', '1', '2024-07-11 18:31:15', '1', '2024-07-11 18:31:19');
SET FOREIGN_KEY_CHECKS = 1;