SET NAMES utf8mb4;
CREATE TABLE `bs_sgc_df_xs` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查编号',
  `NAME` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡查名称',
  `TYPE` int DEFAULT NULL COMMENT '巡查类型',
  `REMARK` text COLLATE utf8mb4_general_ci COMMENT '备注',
  `CREATE_UID` varchar(16) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间',
  `UPDATE_UID` varchar(16) 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='堤防巡视检查表';


CREATE TABLE `bs_sgc_df_xsx` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡查内容编号',
  `XC_ID` int NOT NULL COMMENT '巡查ID',
  `PARTS` varchar(100) COLLATE utf8mb4_general_ci COMMENT '检查部位',
  `CONTENT` varchar(500) COLLATE utf8mb4_general_ci COMMENT '检查内容',
  `REMARK` text COLLATE utf8mb4_general_ci COMMENT '备注',
  `CREATE_UID` varchar(16) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间',
  `UPDATE_UID` varchar(16) 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='堤防巡视检查项表';

CREATE TABLE `bs_sgc_df_xsjh` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查计划编号',
  `XC_ID` int NOT NULL COMMENT '巡查ID',
  `NAME` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡查计划名称',
  `TYPE` int DEFAULT NULL COMMENT '巡查类型',
  `FREQUENCY` int COLLATE utf8mb4_general_ci COMMENT '检查次数',
  `CYCLE_TYPE` int COLLATE utf8mb4_general_ci COMMENT '周期',
  `REMINDER_TIME` datetime DEFAULT NULL COMMENT '提醒时间',
  `OTHER_CONFIG` text COLLATE utf8mb4_general_ci 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='堤防巡视检查计划表';

CREATE TABLE `bs_sgc_df_xsjhzx` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查计划执行者编号',
  `PLAN_ID` int NOT NULL COMMENT '巡查计划ID',
  `OPERATOR_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行人ID',
  `OPERATOR_NAME` varchar(50) COLLATE utf8mb4_general_ci 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='堤防巡视检查计划执行人表';

CREATE TABLE `bs_sgc_df_xsjhdw` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查计划点位编号',
  `PLAN_ID` int NOT NULL COMMENT '巡查计划ID',
  `LONGITUDE` decimal(11,8) DEFAULT NULL COMMENT '经度',
  `LATITUDE` decimal(10,8) DEFAULT NULL COMMENT '纬度',
  `ALTITUDE` decimal(10,2) 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='堤防巡视检查计划点位表';


CREATE TABLE `bs_sgc_df_xsjhjl` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查检查记录编号',
  `PLAN_ID` int NOT NULL COMMENT '巡查计划ID',
  `NAME` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡查记录名称', 
  `STATUS` int NOT 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='堤防巡视检查记录表';

CREATE TABLE `bs_sgc_df_xsjhjlz` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查检查记录子项编号',
  `RECORD_ID` int NOT NULL COMMENT '巡查记录ID',
  `PARTS` varchar(100) COLLATE utf8mb4_general_ci COMMENT '检查部位',
  `CONTENT` varchar(500) COLLATE utf8mb4_general_ci COMMENT '检查内容',
  `STATUS` int NOT NULL COMMENT '状态',
  `PROBLEM` varchar(500) COLLATE utf8mb4_general_ci 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='堤防巡视检查检查记录子项表';

CREATE TABLE `bs_sgc_df_xsjhjgj` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防巡视检查检查记录轨迹编号',
  `RECORD_ID` int NOT NULL COMMENT '巡查记录ID',
  `LONGITUDE` decimal(11,8) DEFAULT NULL COMMENT '经度',
  `LATITUDE` decimal(10,8) DEFAULT NULL COMMENT '纬度',
  `ALTITUDE` decimal(10,2) DEFAULT NULL COMMENT '海拔',
  `CREATE_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='堤防巡视检查检查记录轨迹表';


CREATE TABLE `bs_sgc_df_yhjh` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防维修养护计划编号',
  `DIKE_CODE` varchar(18) COLLATE utf8mb4_general_ci NOT NULL COMMENT '堤防代码',
  `NAME` varchar(100) COLLATE utf8mb4_general_ci COMMENT '名称',
  `PLAN_TIME` datetime DEFAULT NULL COMMENT '计划时间',
  `NATIONAL_SUPPLEMENT` float DEFAULT NULL COMMENT '国补资金',
  `SELF_SUPPLEMENT` float DEFAULT NULL COMMENT '自筹资金',
  `LOCATION` varchar(500) COLLATE utf8mb4_general_ci COMMENT '具体地点',
  `CONTENT` varchar(500) COLLATE utf8mb4_general_ci 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='堤防维修养护计划表';

CREATE TABLE `bs_sgc_df_yhjl` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防维修养护记录编号',
  `PLAN_ID` varchar(18) COLLATE utf8mb4_general_ci NOT NULL COMMENT '计划代码',
  `NAME` varchar(100) COLLATE utf8mb4_general_ci COMMENT '名称',
  `BEFORE` varchar(100) COLLATE utf8mb4_general_ci COMMENT '维护前',
  `MIDDLE` varchar(100) COLLATE utf8mb4_general_ci COMMENT '维护过程',
  `AFTER` varchar(100) COLLATE utf8mb4_general_ci COMMENT '维护结束',
  `MAINTENANCE_FUNDS` float DEFAULT NULL COMMENT '养护费用',
  `IMPLEMENT` varchar(500) COLLATE utf8mb4_general_ci COMMENT '落实情况',
  `REMARK` text COLLATE utf8mb4_general_ci COMMENT '备注',
  `STATUS` int NOT NULL 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='堤防维修养护记录表';

CREATE TABLE `bs_sgc_df_yhjlzx` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '堤防维修养护执行者编号',
  `RECORD_ID` int NOT NULL COMMENT '养护记录ID',
  `OPERATOR_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行人ID',
  `OPERATOR_NAME` varchar(50) COLLATE utf8mb4_general_ci 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='堤防维修养护执行人表';


CREATE TABLE `bs_sgc_sz_xs` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查编号',
  `NAME` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡查名称',
  `TYPE` int 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='水闸巡视检查表';


CREATE TABLE `bs_sgc_sz_xsx` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡查内容编号',
  `XC_ID` int NOT NULL COMMENT '巡查ID',
  `PARTS` varchar(100) COLLATE utf8mb4_general_ci COMMENT '检查部位',
  `CONTENT` varchar(500) COLLATE utf8mb4_general_ci 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='水闸巡视检查项表';

CREATE TABLE `bs_sgc_sz_xsjh` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查计划编号',
  `XC_ID` int NOT NULL COMMENT '巡查ID',
  `NAME` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡查计划名称',
  `TYPE` int DEFAULT NULL COMMENT '巡查类型',
  `FREQUENCY` int COLLATE utf8mb4_general_ci COMMENT '检查次数',
  `CYCLE_TYPE` int COLLATE utf8mb4_general_ci COMMENT '周期',
  `REMINDER_TIME` datetime DEFAULT NULL COMMENT '提醒时间',
  `OTHER_CONFIG` text COLLATE utf8mb4_general_ci 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='水闸巡视检查计划表';

CREATE TABLE `bs_sgc_sz_xsjhzx` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查计划执行者编号',
  `PLAN_ID` int NOT NULL COMMENT '巡查计划ID',
  `OPERATOR_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行人',
  `OPERATOR_NAME` varchar(50) COLLATE utf8mb4_general_ci 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='水闸巡视检查计划执行人表';

CREATE TABLE `bs_sgc_sz_xsjhdw` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查计划点位编号',
  `PLAN_ID` int NOT NULL COMMENT '巡查计划ID',
  `LONGITUDE` decimal(11,8) DEFAULT NULL COMMENT '经度',
  `LATITUDE` decimal(10,8) DEFAULT NULL COMMENT '纬度',
  `ALTITUDE` decimal(10,2) 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='水闸巡视检查计划点位表';


CREATE TABLE `bs_sgc_sz_xsjhjl` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查检查记录编号',
  `PLAN_ID` int NOT NULL COMMENT '巡查计划ID',
  `NAME` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡查记录名称', 
  `STATUS` int NOT 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='水闸巡视检查记录表';

CREATE TABLE `bs_sgc_sz_xsjhjlz` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查检查记录子项编号',
  `RECORD_ID` int NOT NULL COMMENT '巡查记录ID',
  `PARTS` varchar(100) COLLATE utf8mb4_general_ci COMMENT '检查部位',
  `CONTENT` varchar(500) COLLATE utf8mb4_general_ci COMMENT '检查内容',
  `STATUS` int NOT NULL COMMENT '状态',
  `PROBLEM` varchar(500) COLLATE utf8mb4_general_ci 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='水闸巡视检查检查记录子项表';

CREATE TABLE `bs_sgc_sz_xsjhjgj` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸巡视检查检查记录轨迹编号',
  `RECORD_ID` int NOT NULL COMMENT '巡查记录ID',
  `LONGITUDE` decimal(11,8) DEFAULT NULL COMMENT '经度',
  `LATITUDE` decimal(10,8) DEFAULT NULL COMMENT '纬度',
  `ALTITUDE` decimal(10,2) DEFAULT NULL COMMENT '海拔',
  `CREATE_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
  `CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='水闸巡视检查检查记录轨迹表';

CREATE TABLE `bs_sgc_sz_yhjh` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸维修养护计划编号',
  `WAGA_CODE` varchar(18) COLLATE utf8mb4_general_ci NOT NULL COMMENT '水闸代码',
  `NAME` varchar(100) COLLATE utf8mb4_general_ci COMMENT '名称',
  `PLAN_TIME` datetime DEFAULT NULL COMMENT '计划时间',
  `NATIONAL_SUPPLEMENT` float DEFAULT NULL COMMENT '国补资金',
  `SELF_SUPPLEMENT` float DEFAULT NULL COMMENT '自筹资金',
  `LOCATION` varchar(500) COLLATE utf8mb4_general_ci COMMENT '具体地点',
  `CONTENT` varchar(500) COLLATE utf8mb4_general_ci 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='水闸维修养护计划表';

CREATE TABLE `bs_sgc_sz_yhjl` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸维修养护记录编号',
  `PLAN_ID` varchar(18) COLLATE utf8mb4_general_ci NOT NULL COMMENT '计划代码',
  `NAME` varchar(100) COLLATE utf8mb4_general_ci COMMENT '名称',
  `BEFORE` varchar(100) COLLATE utf8mb4_general_ci COMMENT '维护前',
  `MIDDLE` varchar(100) COLLATE utf8mb4_general_ci COMMENT '维护过程',
  `AFTER` varchar(100) COLLATE utf8mb4_general_ci COMMENT '维护结束',
  `MAINTENANCE_FUNDS` float DEFAULT NULL COMMENT '养护费用',
  `IMPLEMENT` varchar(500) COLLATE utf8mb4_general_ci COMMENT '落实情况',
  `REMARK` text COLLATE utf8mb4_general_ci COMMENT '备注',
  `STATUS` int NOT NULL 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='水闸维修养护记录表';

CREATE TABLE `bs_sgc_sz_yhjlzx` (
  `ID` int NOT NULL AUTO_INCREMENT COMMENT '水闸维修养护执行者编号',
  `RECORD_ID` int NOT NULL COMMENT '养护记录ID',
  `OPERATOR_UID` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行人ID',
  `OPERATOR_NAME` varchar(50) COLLATE utf8mb4_general_ci 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='水闸维修养护执行人表';
