CREATE TABLE `yw_gateway` (
|
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
`creator` int(11) DEFAULT NULL COMMENT '创建人编码',
|
`create_date` datetime DEFAULT NULL COMMENT '创建时间',
|
`editor` int(11) DEFAULT NULL COMMENT '更新人编码',
|
`edit_date` datetime DEFAULT NULL COMMENT '更新时间',
|
`isdeleted` int(1) DEFAULT '0' COMMENT '是否删除 0否 1是',
|
`name` varchar(100) DEFAULT NULL COMMENT '网关名称',
|
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
|
`status` int(1) DEFAULT '0' COMMENT '状态 0启用 1禁用',
|
`sortnum` int(11) DEFAULT NULL COMMENT '排序码',
|
`gateway_model` varchar(100) DEFAULT NULL COMMENT '网关型号',
|
`gateway_code` varchar(100) DEFAULT NULL COMMENT '网关设备号',
|
`last_heartbeat_time` datetime DEFAULT NULL COMMENT '最后心跳时间',
|
`project_id` int(11) DEFAULT NULL COMMENT '所属项目编码(关联yw_project)',
|
PRIMARY KEY (`id`),
|
KEY `idx_gateway_code` (`gateway_code`),
|
KEY `idx_project_id` (`project_id`)
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='网关管理';
|