
-- ----------------------------
-- 危化品流向表
-- ----------------------------
CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_0`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;

CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_1`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_2`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_3`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_4`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_5`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;

CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_6`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_7`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_8`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_9`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;

CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_10`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;

CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_11`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_12`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_13`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_14`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;

CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_15`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;

CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_16`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_17`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_18`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;


CREATE TABLE `hazmat_manage`.`hz_hazmat_flow_19`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`hazmat_id` bigint NOT NULL COMMENT '危化品id',
`basic_id` bigint NOT NULL COMMENT '基础数据id',
`state` tinyint NOT NULL COMMENT '操作状态(1取用，2归还，3标签作废)',
`num` decimal(12, 2) NOT NULL COMMENT '数量',
`company_id` bigint NOT NULL COMMENT '企业id',
`create_id` bigint NOT NULL COMMENT '操作人id',
`create_by` varchar(20) NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '危化品流向表' ROW_FORMAT = Dynamic;
