/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 5.7.20-log : Database - quote_price
*********************************************************************
*/


/*!40101 SET NAMES utf8 */;

/*!40101 SET SQL_MODE=''*/;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`quote_price` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `quote_price`;

/*Table structure for table `bug` */

DROP TABLE IF EXISTS `bug`;

CREATE TABLE `bug` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `product` varchar(150) DEFAULT NULL COMMENT '产品',
  `bugRemark` varchar(1665) DEFAULT NULL COMMENT '问题界面',
  `createBy` varchar(60) DEFAULT NULL COMMENT '提交人',
  `createDate` datetime DEFAULT NULL COMMENT '提交时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='bug表';

/*Table structure for table `product` */

DROP TABLE IF EXISTS `product`;

CREATE TABLE `product` (
  `pro_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `length` double DEFAULT NULL COMMENT '长度',
  `width` double DEFAULT NULL COMMENT '宽度',
  `count` double DEFAULT NULL COMMENT '数量',
  `area` double DEFAULT NULL COMMENT '面积',
  `price` double DEFAULT NULL COMMENT '价格',
  `price_multiple` double DEFAULT NULL COMMENT '价格倍数',
  `discount_price` double DEFAULT NULL COMMENT '折扣价',
  `floor_price` double DEFAULT NULL COMMENT '跳楼价',
  `weight` double DEFAULT NULL COMMENT '重量',
  `kind_value` varchar(135) DEFAULT NULL COMMENT '产品种类1',
  `kind_label` varchar(810) DEFAULT NULL COMMENT '种类1说明',
  `kind1_value` varchar(100) DEFAULT NULL COMMENT '产品种类',
  `kind1_label` varchar(100) DEFAULT NULL COMMENT '产品说明',
  `kind2_value` varchar(135) DEFAULT NULL COMMENT '产品种类2',
  `kind2_label` varchar(810) DEFAULT NULL COMMENT '种类2说明',
  `pro_type_value` varchar(135) DEFAULT NULL COMMENT '产品分类',
  `pro_type_label` varchar(1350) DEFAULT NULL COMMENT '产品分类说明',
  `creator` bigint(20) DEFAULT NULL COMMENT '创建人',
  `create_date` datetime DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(20) DEFAULT NULL COMMENT '更新人',
  `update_date` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`pro_id`)
) ENGINE=InnoDB AUTO_INCREMENT=15349 DEFAULT CHARSET=utf8 COMMENT='价格表';

/*Table structure for table `product_img` */

DROP TABLE IF EXISTS `product_img`;

CREATE TABLE `product_img` (
  `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `pro_type_value` varchar(810) DEFAULT NULL COMMENT '产品类型',
  `pro_type_label` varchar(4050) DEFAULT NULL COMMENT '产品类型说明',
  `kind_value` varchar(450) DEFAULT NULL COMMENT '产品种类1',
  `kind_label` varchar(450) DEFAULT NULL COMMENT '产品种类1说明',
  `kind2_value` varchar(450) DEFAULT NULL COMMENT '产品种类2',
  `kind2_label` varchar(450) DEFAULT NULL COMMENT '产品种类2说明',
  `remark` varchar(350) DEFAULT NULL COMMENT '备注',
  `img_url` varchar(520) DEFAULT NULL COMMENT '图片地址',
  `filename` varchar(150) DEFAULT NULL COMMENT '文件名称',
  `creator` bigint(20) DEFAULT NULL,
  `create_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updater` bigint(20) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `img_width` varchar(540) DEFAULT NULL COMMENT '图片宽度',
  `img_height` varchar(540) DEFAULT NULL COMMENT '图片高度',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=147 DEFAULT CHARSET=utf8;

/*Table structure for table `sys_dict_product` */

DROP TABLE IF EXISTS `sys_dict_product`;

CREATE TABLE `sys_dict_product` (
  `pro_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `kind_value` varchar(2295) DEFAULT NULL COMMENT '产品种类1',
  `kind_label` varchar(2295) DEFAULT NULL COMMENT '种类1说明',
  `kind2_value` varchar(450) DEFAULT NULL COMMENT '产品种类2',
  `kind2_label` varchar(450) DEFAULT NULL COMMENT '种类2说明',
  `kind_price` double DEFAULT NULL,
  `discount_price` double DEFAULT NULL,
  `floor_price` double DEFAULT NULL,
  `weight` double DEFAULT NULL,
  `pro_type_value` varchar(2295) DEFAULT NULL COMMENT '产品分类',
  `pro_type_label` varchar(2295) DEFAULT NULL COMMENT '分类说明',
  `remark` varchar(2295) DEFAULT NULL,
  `create_by` varchar(270) DEFAULT NULL,
  `create_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `update_by` varchar(270) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`pro_id`)
) ENGINE=InnoDB AUTO_INCREMENT=391 DEFAULT CHARSET=utf8;

/*Table structure for table `sys_dict_search_pro` */

DROP TABLE IF EXISTS `sys_dict_search_pro`;

CREATE TABLE `sys_dict_search_pro` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `like_pro_type_label` varchar(100) DEFAULT NULL COMMENT '关键字搜索内容',
  `pro_type_label` varchar(50) DEFAULT NULL COMMENT '产品分类',
  `url` varchar(100) DEFAULT NULL COMMENT '地址',
  `status` varchar(5) DEFAULT NULL COMMENT '开启状态 0：关闭 1：开启',
  `createDate` datetime DEFAULT NULL,
  `creator` varchar(50) DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `updater` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8 COMMENT='关键字搜索';

/*Table structure for table `t_customer_train_content` */

DROP TABLE IF EXISTS `t_customer_train_content`;

CREATE TABLE `t_customer_train_content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_type` varchar(60) DEFAULT NULL,
  `kind` varchar(60) DEFAULT NULL,
  `sort` int(20) DEFAULT NULL,
  `content` varchar(15000) DEFAULT NULL,
  `create_by` varchar(60) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_by` varchar(60) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

/*Table structure for table `t_customer_train_kind_label` */

DROP TABLE IF EXISTS `t_customer_train_kind_label`;

CREATE TABLE `t_customer_train_kind_label` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_type` varchar(300) DEFAULT NULL,
  `kind_label` varchar(300) DEFAULT NULL,
  `remark` varchar(765) DEFAULT NULL,
  `sort` int(11) DEFAULT NULL,
  `create_by` varchar(60) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_by` varchar(60) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pro_type` (`pro_type`),
  CONSTRAINT `t_customer_train_kind_label_ibfk_1` FOREIGN KEY (`pro_type`) REFERENCES `t_customer_train_pro_type` (`pro_type`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;

/*Table structure for table `t_customer_train_pro_type` */

DROP TABLE IF EXISTS `t_customer_train_pro_type`;

CREATE TABLE `t_customer_train_pro_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_type` varchar(300) NOT NULL,
  `remark` varchar(1500) DEFAULT NULL,
  `sort` int(11) DEFAULT NULL,
  `create_by` varchar(60) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_by` varchar(60) DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`pro_type`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_article` */

DROP TABLE IF EXISTS `tbl_article`;

CREATE TABLE `tbl_article` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL COMMENT '标题',
  `content` varchar(5000) NOT NULL COMMENT '主题内容',
  `type` varchar(5) DEFAULT NULL COMMENT '文章类型',
  `status` varchar(5) DEFAULT NULL COMMENT '文章发表状态',
  `imagesUrl` varchar(100) DEFAULT NULL COMMENT '图片地址',
  `hit` int(11) DEFAULT NULL COMMENT '点击数',
  `remark` varchar(50) DEFAULT NULL COMMENT '标识',
  `createBy` varchar(50) DEFAULT NULL COMMENT '添加人',
  `createDate` datetime DEFAULT NULL COMMENT '创建日期',
  `updateBy` varchar(50) DEFAULT NULL COMMENT '更新人',
  `updateDate` datetime DEFAULT NULL COMMENT '更新日期',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_customer_award` */

DROP TABLE IF EXISTS `tbl_customer_award`;

CREATE TABLE `tbl_customer_award` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nickname` varchar(150) DEFAULT NULL COMMENT '客服昵称',
  `payPercent` double DEFAULT NULL COMMENT '付款百分比',
  `askNumber` double DEFAULT NULL COMMENT '询单人数',
  `customerPrice` double DEFAULT NULL COMMENT '客单价',
  `award` int(11) DEFAULT NULL COMMENT '奖励金额',
  `shopname` varchar(150) DEFAULT NULL COMMENT '店铺',
  `creator` varchar(150) DEFAULT NULL COMMENT '导入人',
  `createDate` datetime DEFAULT NULL COMMENT '导入时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='客服奖励表';

/*Table structure for table `tbl_customer_data` */

DROP TABLE IF EXISTS `tbl_customer_data`;

CREATE TABLE `tbl_customer_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(60) DEFAULT NULL COMMENT '用户名,用户删除数据',
  `realname` varchar(60) DEFAULT NULL COMMENT '真实姓名',
  `role` varchar(300) DEFAULT NULL COMMENT '所属角色',
  `price` double DEFAULT NULL COMMENT '报价金额',
  `productExplain` varchar(1500) DEFAULT NULL COMMENT '产品说明',
  `wangwang` varchar(300) DEFAULT NULL COMMENT '客户旺旺',
  `isBuy` varchar(3) DEFAULT NULL COMMENT '是否购买 0:否 1:是',
  `commentSelf` varchar(3000) DEFAULT NULL,
  `commentManager` varchar(3000) DEFAULT NULL COMMENT '说明',
  `commentDate` datetime DEFAULT NULL COMMENT '店长评语日期',
  `isDelete` varchar(3) DEFAULT NULL COMMENT '是否删除 0:否 1:是',
  `completeDate` datetime DEFAULT NULL COMMENT '成交时间',
  `createBy` varchar(60) DEFAULT NULL COMMENT '创建人',
  `createDate` datetime DEFAULT NULL COMMENT '创建时间',
  `updateBy` varchar(60) DEFAULT NULL COMMENT '更新人',
  `updateDate` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5068 DEFAULT CHARSET=utf8 COMMENT='客服操作数据记录';

/*Table structure for table `tbl_express_fee` */

DROP TABLE IF EXISTS `tbl_express_fee`;

CREATE TABLE `tbl_express_fee` (
  `id` int(11) DEFAULT NULL,
  `pro_type_value` varchar(60) DEFAULT NULL COMMENT '产品类型',
  `pro_type_label` varchar(60) DEFAULT NULL COMMENT '产品类型说明',
  `province` varchar(60) DEFAULT NULL COMMENT '省份',
  `first_weight_price` double DEFAULT NULL COMMENT '首重价格',
  `continued_weight_price` double DEFAULT NULL COMMENT '续重价格',
  `start_price` double DEFAULT NULL COMMENT '起步价',
  `createBy` varchar(60) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateBy` varchar(60) DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='快递费';

/*Table structure for table `tbl_file` */

DROP TABLE IF EXISTS `tbl_file`;

CREATE TABLE `tbl_file` (
  `fileId` int(11) NOT NULL AUTO_INCREMENT,
  `fileName` varchar(50) DEFAULT NULL,
  `filePath` varchar(255) DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `createBy` varchar(50) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `updateBy` varchar(50) DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  PRIMARY KEY (`fileId`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_information` */

DROP TABLE IF EXISTS `tbl_information`;

CREATE TABLE `tbl_information` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content` varchar(1500) DEFAULT NULL COMMENT '知识点内容',
  `type` varchar(30) DEFAULT NULL COMMENT '知识点类型',
  `createBy` varchar(30) DEFAULT NULL COMMENT '创建者',
  `createDate` datetime DEFAULT NULL COMMENT '创建时间',
  `updateBy` varchar(30) DEFAULT NULL COMMENT '更新者',
  `updateDate` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8 COMMENT='产品知识点；客服须知';

/*Table structure for table `tbl_login_ip` */

DROP TABLE IF EXISTS `tbl_login_ip`;

CREATE TABLE `tbl_login_ip` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `agreeIp` varchar(120) DEFAULT NULL COMMENT '允许登录的IP',
  `remark` varchar(50) DEFAULT NULL COMMENT '说明',
  `createBy` varchar(20) DEFAULT NULL COMMENT '创建人',
  `createDate` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `ip` (`agreeIp`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='授权登录IP';

/*Table structure for table `tbl_login_log` */

DROP TABLE IF EXISTS `tbl_login_log`;

CREATE TABLE `tbl_login_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `remark` varchar(200) DEFAULT NULL COMMENT '登录说明',
  `status` varchar(4) DEFAULT NULL COMMENT '登录状态',
  `loginTime` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '登录时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55726 DEFAULT CHARSET=utf8 COMMENT='登录日志';

/*Table structure for table `tbl_product_price` */

DROP TABLE IF EXISTS `tbl_product_price`;

CREATE TABLE `tbl_product_price` (
  `id` int(11) DEFAULT NULL,
  `sticker_kind` varchar(30) DEFAULT NULL,
  `craft_tang` varchar(30) DEFAULT NULL,
  `aotu` varchar(30) DEFAULT NULL,
  `pro_type_value` varchar(30) DEFAULT NULL,
  `kind_value` varchar(30) DEFAULT NULL,
  `kind2_value` varchar(30) DEFAULT NULL,
  `price500` int(11) DEFAULT NULL,
  `price1000` int(11) DEFAULT NULL,
  `price2000` int(11) DEFAULT NULL,
  `price3000` int(11) DEFAULT NULL,
  `price4000` int(11) DEFAULT NULL,
  `price5000` int(11) DEFAULT NULL,
  `price10000` int(11) DEFAULT NULL,
  `size_type` varchar(12) DEFAULT NULL,
  `remark` varchar(150) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_question` */

DROP TABLE IF EXISTS `tbl_question`;

CREATE TABLE `tbl_question` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `question` varchar(1500) DEFAULT NULL COMMENT '问题',
  `type` varchar(3) DEFAULT NULL COMMENT '问题类型',
  `answer1` varchar(150) DEFAULT NULL COMMENT '选项A',
  `answer2` varchar(150) DEFAULT NULL COMMENT '选项B',
  `answer3` varchar(150) DEFAULT NULL COMMENT '选项C',
  `answer4` varchar(150) DEFAULT NULL COMMENT '选项D',
  `answer` varchar(150) DEFAULT NULL COMMENT '正确答案',
  `ansCount` int(11) DEFAULT NULL COMMENT '填空题空数',
  `createBy` varchar(150) DEFAULT NULL COMMENT '创建者',
  `createDate` datetime DEFAULT NULL COMMENT '创建时间',
  `updateBy` varchar(150) DEFAULT NULL COMMENT '更新者',
  `updateDate` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8 COMMENT='产品知识测试表';

/*Table structure for table `tbl_quote_data` */

DROP TABLE IF EXISTS `tbl_quote_data`;

CREATE TABLE `tbl_quote_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(180) DEFAULT NULL COMMENT '用户名',
  `realname` varchar(150) DEFAULT NULL COMMENT '姓名',
  `role` varchar(600) DEFAULT NULL COMMENT '角色',
  `shopname` varchar(60) DEFAULT NULL COMMENT '数据所属店铺',
  `price` double DEFAULT NULL COMMENT '报价价格',
  `buyPrice` double DEFAULT NULL COMMENT '实际成交金额',
  `wangwang` varchar(300) DEFAULT NULL COMMENT '客户旺旺',
  `isBuy` varchar(9) NOT NULL COMMENT '是否成交',
  `buyDate` datetime DEFAULT NULL COMMENT '成交时间',
  `isBuyToDay` varchar(3) NOT NULL COMMENT '是否当天购买',
  `isBuyToDayDate` datetime DEFAULT NULL COMMENT '购买时间',
  `remark` varchar(1800) DEFAULT NULL COMMENT '报价记录',
  `remarkJudge` varchar(500) DEFAULT NULL COMMENT '报价记录对比',
  `quoteTime` datetime NOT NULL COMMENT '报价时间',
  `commentSelf` varchar(1500) DEFAULT NULL COMMENT '未成交说明',
  `commentSelfDate` datetime DEFAULT NULL COMMENT '日期',
  `commentManager` varchar(1500) DEFAULT NULL COMMENT '店长跟单',
  `commentManagerDate` datetime DEFAULT NULL COMMENT '店长跟单日期',
  `isSelect` varchar(3) DEFAULT NULL COMMENT '是否选择所属店铺',
  `selectDate` datetime DEFAULT NULL COMMENT '选择时间',
  `isFillIn` varchar(3) DEFAULT NULL COMMENT '是否填写旺旺号',
  `fillInDate` datetime DEFAULT NULL COMMENT '填写旺旺时间',
  `proTypeLabel` varchar(50) NOT NULL COMMENT '产品类型',
  `orderNumber` varchar(25) DEFAULT NULL COMMENT '成交的订单号',
  PRIMARY KEY (`id`,`proTypeLabel`),
  KEY `index_where` (`shopname`,`quoteTime`,`wangwang`,`realname`,`isBuy`,`isBuyToDay`,`proTypeLabel`,`price`,`buyPrice`,`isFillIn`),
  KEY `index_realname` (`realname`,`quoteTime`,`price`,`buyPrice`,`wangwang`,`isBuy`,`isBuyToDay`,`isFillIn`,`proTypeLabel`,`shopname`),
  KEY `index_proTypeLabel` (`proTypeLabel`,`quoteTime`,`isFillIn`,`wangwang`,`price`,`isBuy`,`isBuyToDay`),
  KEY `index_username` (`quoteTime`,`username`,`realname`),
  KEY `index_quoteTime` (`quoteTime`)
) ENGINE=InnoDB AUTO_INCREMENT=320661 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_quote_log` */

DROP TABLE IF EXISTS `tbl_quote_log`;

CREATE TABLE `tbl_quote_log` (
  `quoteId` int(8) NOT NULL AUTO_INCREMENT,
  `quoteTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作时间',
  `quoteIp` varchar(120) DEFAULT NULL COMMENT '操作IP',
  `os` varchar(60) DEFAULT NULL COMMENT '操作系统',
  `realname` varchar(150) DEFAULT NULL COMMENT '姓名',
  `username` varchar(150) DEFAULT NULL COMMENT '用户名',
  `brower` varchar(150) DEFAULT NULL COMMENT '浏览器',
  `remark` varchar(300) DEFAULT NULL COMMENT '备注：操作说明',
  `shopname` varchar(200) DEFAULT NULL COMMENT '店铺',
  `price` double DEFAULT NULL,
  PRIMARY KEY (`quoteId`)
) ENGINE=InnoDB AUTO_INCREMENT=1970236 DEFAULT CHARSET=utf8 COMMENT='用户操作表';

/*Table structure for table `tbl_sys_finance` */

DROP TABLE IF EXISTS `tbl_sys_finance`;

CREATE TABLE `tbl_sys_finance` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `add_time` date DEFAULT NULL COMMENT '添加时间',
  `supplier` varchar(150) DEFAULT NULL COMMENT '供应商',
  `shopname` varchar(150) DEFAULT NULL COMMENT '店铺',
  `kind` varchar(150) DEFAULT NULL COMMENT '种类1',
  `kind2` varchar(150) DEFAULT NULL COMMENT '种类2',
  `order_number` varchar(300) DEFAULT NULL COMMENT '订单号',
  `filename` varchar(1500) DEFAULT NULL COMMENT '文件名',
  `count` varchar(30) DEFAULT NULL COMMENT '数量',
  `number` varchar(30) DEFAULT NULL COMMENT '款数',
  `zhang` varchar(30) DEFAULT NULL COMMENT '拼版张数',
  `remark` varchar(1500) DEFAULT NULL COMMENT '备注',
  `create_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '导入时间',
  `creator` varchar(300) DEFAULT NULL COMMENT '导入人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11620 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_sys_finance_difference` */

DROP TABLE IF EXISTS `tbl_sys_finance_difference`;

CREATE TABLE `tbl_sys_finance_difference` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_number` varchar(1800) DEFAULT NULL COMMENT '订单号',
  `shopname` varchar(450) DEFAULT NULL COMMENT '店铺',
  `wangwang` varchar(450) DEFAULT NULL COMMENT '旺旺号',
  `pay_time` datetime DEFAULT NULL COMMENT '付款时间',
  `price` varchar(90) DEFAULT NULL COMMENT '金额',
  `remark` varchar(4500) DEFAULT NULL COMMENT '备注',
  `taobao_status` varchar(450) DEFAULT NULL COMMENT '状态',
  `open_order_number` varchar(1800) DEFAULT NULL COMMENT '拆分订单号',
  `filename` varchar(450) DEFAULT NULL COMMENT '文件名',
  `creator` varchar(450) DEFAULT NULL COMMENT '导入人',
  `create_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '导入时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59552 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_sys_finance_extract` */

DROP TABLE IF EXISTS `tbl_sys_finance_extract`;

CREATE TABLE `tbl_sys_finance_extract` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_number` varchar(500) DEFAULT NULL COMMENT '订单号',
  `remark` varchar(5000) DEFAULT NULL COMMENT '备注',
  `length` varchar(30) DEFAULT NULL COMMENT '长',
  `width` varchar(30) DEFAULT NULL COMMENT '宽',
  `height` varchar(30) DEFAULT NULL COMMENT '高',
  `count` varchar(30) DEFAULT NULL COMMENT '数量',
  `filename` varchar(150) DEFAULT NULL COMMENT '文件名',
  `creator` varchar(30) DEFAULT NULL COMMENT '导入人',
  `create_date` datetime DEFAULT NULL COMMENT '导入时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=196143 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_sys_permission` */

DROP TABLE IF EXISTS `tbl_sys_permission`;

CREATE TABLE `tbl_sys_permission` (
  `perId` int(11) NOT NULL AUTO_INCREMENT,
  `perName` varchar(50) DEFAULT NULL COMMENT '权限名称',
  `type` varchar(100) DEFAULT NULL,
  `perCode` varchar(100) DEFAULT NULL,
  `url` varchar(100) DEFAULT NULL COMMENT '权限路劲',
  `perIcon` varchar(100) DEFAULT NULL COMMENT '图标',
  `parentId` int(11) DEFAULT NULL COMMENT '父ID',
  `orderNo` varchar(10) DEFAULT NULL COMMENT '排序',
  `thirdOrderName` varchar(20) DEFAULT NULL COMMENT '三级菜单名称',
  `thirdParentId` int(11) DEFAULT NULL COMMENT '三级菜单父ID',
  `createBy` varchar(50) DEFAULT NULL COMMENT '创建人',
  `createDate` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`perId`)
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8 COMMENT='权限表';

/*Table structure for table `tbl_sys_role` */

DROP TABLE IF EXISTS `tbl_sys_role`;

CREATE TABLE `tbl_sys_role` (
  `roleId` int(11) NOT NULL AUTO_INCREMENT,
  `roleName` varchar(50) DEFAULT NULL COMMENT '角色名称',
  `remark` varchar(200) DEFAULT NULL COMMENT '角色说明',
  `isRegist` varchar(1) DEFAULT NULL COMMENT '注册标识',
  `createBy` varchar(50) DEFAULT NULL COMMENT '创建人',
  `createDate` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  `updateBy` varchar(50) DEFAULT NULL COMMENT '更新人',
  `updateDate` datetime DEFAULT NULL COMMENT '更新时间',
  `isSelf` varchar(3) DEFAULT NULL COMMENT '本公司店铺',
  PRIMARY KEY (`roleId`)
) ENGINE=InnoDB AUTO_INCREMENT=1052 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_sys_role_permission` */

DROP TABLE IF EXISTS `tbl_sys_role_permission`;

CREATE TABLE `tbl_sys_role_permission` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `roleId` int(11) NOT NULL COMMENT '角色ID',
  `perId` int(11) NOT NULL COMMENT '权限ID',
  `createDate` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16856 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_sys_user` */

DROP TABLE IF EXISTS `tbl_sys_user`;

CREATE TABLE `tbl_sys_user` (
  `userId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `realname` varchar(50) DEFAULT NULL COMMENT '真实名字',
  `username` varchar(50) DEFAULT NULL COMMENT '账号',
  `password` varchar(50) DEFAULT NULL COMMENT '密码',
  `userStatus` varchar(1) DEFAULT NULL COMMENT '状态',
  `role` varchar(200) DEFAULT NULL COMMENT '角色',
  `sysStatus` varchar(1) DEFAULT NULL COMMENT '系统状态。0:隐藏，1:显示',
  `readLogStatus` varchar(1) DEFAULT NULL COMMENT '阅读更新日志状态 0：未读 1：已读',
  `createBy` varchar(50) DEFAULT NULL COMMENT '创建人',
  `createDate` datetime DEFAULT NULL COMMENT '创建时间',
  `updateBy` varchar(50) DEFAULT NULL COMMENT '更新人',
  `updateDate` datetime DEFAULT NULL COMMENT '更新时间',
  `birthDay` varchar(20) DEFAULT NULL COMMENT '生日',
  `birthType` varchar(1) DEFAULT NULL COMMENT '生日类型  0:农历 1:新历',
  `isBirthDay` tinyint(1) DEFAULT NULL COMMENT '是否是生日',
  `entryDate` varchar(20) DEFAULT NULL COMMENT '入职时间',
  `needIp` varchar(1) DEFAULT NULL COMMENT '是否需要判断IP 0:否 1:是',
  PRIMARY KEY (`userId`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=1349 DEFAULT CHARSET=utf8;

/*Table structure for table `tbl_sys_user_role` */

DROP TABLE IF EXISTS `tbl_sys_user_role`;

CREATE TABLE `tbl_sys_user_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户角色id',
  `userId` int(11) NOT NULL,
  `roleId` int(11) NOT NULL,
  `createDate` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `userId` (`userId`),
  KEY `roleId` (`roleId`),
  CONSTRAINT `tbl_sys_user_role_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `tbl_sys_user` (`userId`),
  CONSTRAINT `tbl_sys_user_role_ibfk_2` FOREIGN KEY (`roleId`) REFERENCES `tbl_sys_role` (`roleId`)
) ENGINE=InnoDB AUTO_INCREMENT=2775 DEFAULT CHARSET=utf8 COMMENT='用户角色表';

/*Table structure for table `tbl_update_log` */

DROP TABLE IF EXISTS `tbl_update_log`;

CREATE TABLE `tbl_update_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content` varchar(15000) DEFAULT NULL,
  `addTime` datetime DEFAULT NULL,
  `createBy` varchar(150) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
