
CREATE TABLE `hz_taboo_warning`  (
                                     `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
                                     `entry_id` bigint NOT NULL COMMENT '入库记录id',
                                     `warehouse_id` bigint NOT NULL COMMENT '仓库id',
                                     `cupboard_id` bigint NOT NULL COMMENT '存储柜id',
                                     `warning_type` tinyint NOT NULL DEFAULT 1 COMMENT '1：禁忌2：消3：分',
                                     `state` tinyint NOT NULL DEFAULT 0 COMMENT '状态(0未处理，1已处理)',
                                     `taboo_basic_id` bigint NOT NULL COMMENT '相忌危化品基础id',
                                     `company_id` bigint NOT NULL COMMENT '企业id',
                                     `create_by` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
                                     `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
                                     `update_by` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
                                     `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
                                     `del_flag` tinyint NULL DEFAULT 0 COMMENT '删除标志(0代表存在，1代表删除，默认0)',
                                     `remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
                                     `version` int NOT NULL DEFAULT 0,
                                     `re_warehouse_id` bigint NULL DEFAULT NULL COMMENT '新仓库id',
                                     `re_cupboard_id` bigint NULL DEFAULT NULL COMMENT '新存储柜id',
                                     PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '相忌警告表' ROW_FORMAT = DYNAMIC;
