CREATE TABLE `iec_104_point` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `eqmid` int(11) DEFAULT NULL,
  `field` varchar(45) DEFAULT NULL,
  `stype` varchar(45) DEFAULT NULL COMMENT '类型 1:遥信 2:遥测',
  `sadr` int(11) DEFAULT NULL COMMENT '点位',
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `ied_dl_config`
ADD COLUMN `upload` INT NULL COMMENT '0:不传; 1:要传;' AFTER `active`;

ALTER TABLE `ied_dl_record`
ADD COLUMN `upload` INT(11) NULL DEFAULT NULL COMMENT '0:未传; 1:已传;' AFTER `data`;

ALTER TABLE `i2sync_field`
ADD COLUMN `conversion` VARCHAR(45) NULL COMMENT '单位换算' AFTER `attach`;

ALTER TABLE `n_sensor`
ADD COLUMN `sdk_type` INT NULL COMMENT '1:大华 2:海康' AFTER `tm_type`,
ADD COLUMN `channel` INT NULL COMMENT '通道' AFTER `sdk_type`;
