/*
SQLyog Ultimate v13.1.1 (64 bit)
MySQL - 5.7.32-log : Database - coreshop
*********************************************************************
*/

/*!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*/`coreshop` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `coreshop`;

/*Table structure for table `WeChatTransactionComponentBrandAudit` */

DROP TABLE IF EXISTS `WeChatTransactionComponentBrandAudit`;

CREATE TABLE `WeChatTransactionComponentBrandAudit` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序列',
  `license` varchar(500) NOT NULL COMMENT '营业执照或组织机构代码证',
  `brand_audit_type` int(11) NOT NULL COMMENT '认证审核类型',
  `trademark_type` varchar(10) NOT NULL COMMENT '商标分类',
  `brand_management_type` int(11) NOT NULL COMMENT '经营类型',
  `commodity_origin_type` int(11) NOT NULL COMMENT '商品产地是否进口',
  `brand_wording` varchar(50) NOT NULL COMMENT '商标/品牌词',
  `sale_authorization` varchar(500) DEFAULT NULL COMMENT '销售授权书',
  `trademark_registration_certificate` varchar(500) NOT NULL COMMENT '商标注册证书',
  `trademark_change_certificate` varchar(500) DEFAULT NULL COMMENT '商标变更证明',
  `trademark_registrant` varchar(100) NOT NULL COMMENT '商标注册人姓名',
  `trademark_registrant_nu` varchar(10) NOT NULL COMMENT '商标注册号/申请号',
  `trademark_authorization_period` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '商标有效期',
  `trademark_registration_application` varchar(100) DEFAULT NULL COMMENT '商标注册申请受理通知书',
  `trademark_applicant` varchar(100) DEFAULT NULL COMMENT '商标申请人姓名',
  `trademark_application_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '商标申请时间',
  `imported_goods_form` varchar(500) DEFAULT NULL COMMENT '中华人民共和国海关进口货物报关单',
  `scene_group_list` int(11) NOT NULL COMMENT '商品使用场景',
  `audit_id` varchar(50) DEFAULT NULL COMMENT '审核单id',
  `status` int(11) DEFAULT '0' COMMENT '审核状态',
  `brandId` int(11) DEFAULT '0' COMMENT '品牌id',
  `rejectReason` varchar(255) DEFAULT NULL COMMENT '拒绝原因',
  `createTime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `WeChatTransactionComponentBrandAudit` */

/*Table structure for table `WeChatTransactionComponentBrandAuditLog` */

DROP TABLE IF EXISTS `WeChatTransactionComponentBrandAuditLog`;

CREATE TABLE `WeChatTransactionComponentBrandAuditLog` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序列',
  `audit_id` varchar(50) NOT NULL COMMENT '审核Id',
  `status` int(11) NOT NULL COMMENT '审核状态,1:已通过,9:拒绝',
  `audit_type` int(11) NOT NULL COMMENT '审核类型，本接口固定为1',
  `reject_reason` varchar(500) NOT NULL COMMENT '相关信息',
  `brand_id` int(11) NOT NULL COMMENT '品牌id',
  `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '回调时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

/*Data for the table `WeChatTransactionComponentBrandAuditLog` */

/*!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 */;
