-- ----------------------------
-- 入库记录表
-- ----------------------------
CREATE TABLE `hazmat_manage`.`hz_entry_record`  (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
`warehouse_id` bigint NOT NULL COMMENT '仓库id',
`num` int NOT NULL DEFAULT 0 COMMENT '数量',
`batch_no` varchar(20) NOT NULL COMMENT '批号',
`basic_id` bigint NOT NULL COMMENT '危化品基础id',
`start_code` int NULL COMMENT '试剂标签编码开始位置',
`end_code` int NULL COMMENT '试剂标签编码结束位置',
`code_prex` varchar(30) NULL COMMENT '条码前缀',
`state` tinyint NULL DEFAULT 0 COMMENT '状态(0未入库，1已入库)',
`company_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;


