/*
 Navicat Premium Data Transfer

 Source Server         : localhost-80
 Source Server Type    : MySQL
 Source Server Version : 80039
 Source Host           : localhost:3306
 Source Schema         : ma_sgzb_nx

 Target Server Type    : MySQL
 Target Server Version : 80039
 File Encoding         : 65001

 Date: 06/08/2024 14:28:03
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for bm_storage_log
-- ----------------------------
DROP TABLE IF EXISTS `bm_storage_log`;
CREATE TABLE `bm_storage_log`  (
                                   `id` int NOT NULL AUTO_INCREMENT,
                                   `model_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '模块',
                                   `method` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '方法',
                                   `type_id` int NULL DEFAULT NULL COMMENT '规格id',
                                   `pre_store_num` int NULL DEFAULT NULL COMMENT '操作前库存数量',
                                   `in_num` int NULL DEFAULT NULL COMMENT '入库数量',
                                   `out_num` int NULL DEFAULT NULL COMMENT '出库数量',
                                   `back_num` int NULL DEFAULT NULL COMMENT '退库接收-总数量',
                                   `pass_num` int NULL DEFAULT NULL COMMENT '退库接收-合格数量',
                                   `maintenance_num` int NULL DEFAULT NULL COMMENT '退库接收-维修数量',
                                   `scrap_num` int NULL DEFAULT NULL COMMENT '退库接收-报废数量',
                                   `post_store_num` int NULL DEFAULT NULL COMMENT '操作后库存',
                                   `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
                                   `creator` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '创建人',
                                   `task_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '任务id',
                                   `agreement_id` int NULL DEFAULT NULL COMMENT '协议id',
                                   `manage_type` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '出库类型 0编码出库  1数量出库 2成套出库',
                                   `type_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '类型名称',
                                   `type_model_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '规格型号',
                                   `result_code` int NULL DEFAULT NULL COMMENT 'http code',
                                   `result_msg` varchar(3000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '0' COMMENT 'http msg',
                                   `remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '备注',
                                   `status` int NULL DEFAULT NULL COMMENT '状态：默认0，其他为异常状态',
                                   `json_result` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'json_result',
                                   PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 319234 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = COMPACT;

SET FOREIGN_KEY_CHECKS = 1;
