
-- ----------------------------
-- 仓库表
-- ----------------------------
CREATE TABLE `hazmat_manage`.`hz_warehouse`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL COMMENT '仓库名称',
`address` varchar(100) NULL COMMENT '仓库地址',
`company_id` bigint NOT NULL COMMENT '企业id',
`del_flag` tinyint NULL DEFAULT 0 COMMENT '删除标志(0代表存在 1代表删除)',
`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;