Newer
Older
huludao / sql-script / 20240723.sql
CREATE TABLE `meet_plan_new` (
                                 `id` bigint(11) NOT NULL COMMENT 'id',
                                 `plan_name` varchar(255) DEFAULT NULL COMMENT '预案名称',
                                 `plan_type` varchar(30) DEFAULT NULL COMMENT '预案类型',
                                 `plan_file` varchar(5000) DEFAULT NULL COMMENT '预案文件',
                                 `remark` varchar(45) DEFAULT NULL COMMENT '备注',
                                 `status` varchar(16) DEFAULT NULL COMMENT '状态',
                                 `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
                                 `create_by` varchar(64) DEFAULT '' COMMENT '创建者',
                                 `create_time` datetime DEFAULT NULL COMMENT '创建时间',
                                 `update_by` varchar(64) DEFAULT '' COMMENT '更新者',
                                 `update_time` datetime DEFAULT NULL COMMENT '更新时间',
                                 PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='防汛应急指挥-应急预案';
CREATE TABLE `meet_plan_type_new` (
                                      `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
                                      `code` varchar(30) NOT NULL COMMENT 'code',
                                      `name` varchar(255) DEFAULT NULL COMMENT '类型名称',
                                      PRIMARY KEY (`id`) USING BTREE,
                                      UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='防汛应急指挥-应急预案-预案类型';
INSERT INTO huludao_main.meet_plan_type_new
(id, code, name)
VALUES(1, '1', '城市防洪应急预案');
INSERT INTO huludao_main.meet_plan_type_new
(id, code, name)
VALUES(2, '2', '排渍应急联动预案');
INSERT INTO huludao_main.meet_plan_type_new
(id, code, name)
VALUES(3, '3', '内湖防洪应急预案');
INSERT INTO huludao_main.meet_plan_type_new
(id, code, name)
VALUES(4, '4', '抗旱应急预案');