/*
 Navicat Premium Data Transfer

 Source Server         : dockerMySql
 Source Server Type    : MySQL
 Source Server Version : 50744
 Source Host           : 127.0.0.1:3306
 Source Schema         : wcs

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

 Date: 20/01/2026 16:44:09
*/

SET NAMES utf8mb4;
SET
FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for cv_devp
-- ----------------------------
DROP TABLE IF EXISTS `cv_devp`;
CREATE TABLE `cv_devp`
(
    `id`          bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
    `dev_no`      varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号',
    `dec_desc`    varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称(*)',
    `in_enable`   varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '可入',
    `out_enable`  varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '可出',
    `autoing`     varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '自动',
    `loading`     varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '有物',
    `canining`    varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '能入',
    `canouting`   varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '能出',
    `wrk_no`      int(11) NULL DEFAULT NULL COMMENT '工作号',
    `barcode`     varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '条码',
    `loc_type`    varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库位类型',
    `status`      int(1) NOT NULL DEFAULT 1 COMMENT '状态{1:正常,0:冻结}',
    `deleted`     int(1) NOT NULL DEFAULT 0 COMMENT '是否删除{1:是,0:否}',
    `tenant_id`   bigint(20) NULL DEFAULT NULL COMMENT '租户[sys_tenant]',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '添加人员[sys_user]',
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '修改人员[sys_user]',
    `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
    `memo`        varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of cv_devp
-- ----------------------------

-- ----------------------------
-- Table structure for cv_job
-- ----------------------------
DROP TABLE IF EXISTS `cv_job`;
CREATE TABLE `cv_job`
(
    `id`          bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
    `seq_num`     varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号',
    `work_no`     varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称(*)',
    `job_sts`     int(11) NULL DEFAULT 1 COMMENT '任务状态',
    `status`      int(1) NOT NULL DEFAULT 1 COMMENT '状态{1:正常,0:冻结}',
    `deleted`     int(1) NOT NULL DEFAULT 0 COMMENT '是否删除{1:是,0:否}',
    `tenant_id`   bigint(20) NULL DEFAULT NULL COMMENT '租户[sys_tenant]',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '添加人员[sys_user]',
    `create_time` timestamp                                               NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '修改人员[sys_user]',
    `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
    `memo`        varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uq_cv_job_seq_num`(`seq_num`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of cv_job
-- ----------------------------

-- ----------------------------
-- Table structure for cv_work_lastno
-- ----------------------------
DROP TABLE IF EXISTS `cv_work_lastno`;
CREATE TABLE `cv_work_lastno`
(
    `id`          bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
    `type`        varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号',
    `wrk_no`      varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前工作号',
    `s_no`        int(11) NULL DEFAULT NULL COMMENT '起始工作号',
    `e_no`        int(11) NULL DEFAULT NULL COMMENT '结束工作号',
    `status`      int(1) NOT NULL DEFAULT 1 COMMENT '状态{1:正常,0:冻结}',
    `deleted`     int(1) NOT NULL DEFAULT 0 COMMENT '是否删除{1:是,0:否}',
    `tenant_id`   bigint(20) NULL DEFAULT NULL COMMENT '租户[sys_tenant]',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '添加人员[sys_user]',
    `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '修改人员[sys_user]',
    `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
    `memo`        varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of cv_work_lastno
-- ----------------------------
INSERT INTO `cv_work_lastno`
VALUES (1, '1', '1', 1, 9990, 1, 0, NULL, NULL, '2026-01-20 08:15:11', NULL, '2026-01-20 08:15:11', NULL);

SET
FOREIGN_KEY_CHECKS = 1;
