SET NAMES utf8mb4;

CREATE TABLE `dws_rel_disc_dike` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '编号',
  `DISC_CODE` varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '堤段代码',
  `DISC_NAME` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '堤段名称',
  `DIKE_CODE` varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '堤防代码',
  `DIKE_NAME` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '堤防名称',
  `FROM_DATE` datetime DEFAULT NULL COMMENT '关系建立时间',
  `TO_DATE` datetime DEFAULT NULL COMMENT '关系终止时间',
  `REMARK` text COLLATE utf8mb4_general_ci COMMENT '备注',
  `CREATE_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间',
  `UPDATE_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '最近修改人',
  `UPDATE_TIME` datetime DEFAULT NULL COMMENT '最近修改时间',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='堤段所属堤防对象关系表';

ALTER TABLE `MS_DSM_ENV` MODIFY COLUMN MPCD  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '测点编号';
ALTER TABLE `MS_DSM_GSTMONREC` MODIFY COLUMN MPCD  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '测点编号';
ALTER TABLE `MS_DSM_OSSMONREC` MODIFY COLUMN MPCD  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '测点编号';

