66
CREATE TABLE `wst_shop_cats` (
`catId` int(11) NOT NULL AUTO_INCREMENT,
`shopId` int(11) NOT NULL,
`parentId` int(11) NOT NULL,
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0:隐藏 1:显示',
`catName` varchar(100) NOT NULL,
`catSort` int(11) NOT NULL DEFAULT '0',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1:有效 -1:删除',
`createTime` datetime NOT NULL,
PRIMARY KEY (`catId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京’‘';
67
CREATE TABLE `wst_shop_configs` (
`configId` int(11) NOT NULL AUTO_INCREMENT,
`shopId` int(11) NOT NULL,
`shopTitle` varchar(255) NOT NULL,
`shopKeywords` varchar(255) NOT NULL,
`shopDesc` varchar(500) NOT NULL,
`shopBanner` varchar(150) NOT NULL,
`shopAds` text NOT NULL,
`shopAdsUrl` text NOT NULL,
`shopServicer` varchar(100) NOT NULL,
`shopHotWords` varchar(255) DEFAULT NULL,
`isDistribut` tinyint(4) DEFAULT '0' COMMENT '1:开启 0:关闭',
`distributType` tinyint(4) DEFAULT '1' COMMENT '1:按商品设置提取佣金 2:按订单比例提取佣金',
`distributOrderRate` int(11) DEFAULT '0',
`userDecoration` tinyint(4) DEFAULT '0' COMMENT '1:是 0:否',
`shopStreetlmg` varchar(150) DEFAULT NULL,
`shopMoveBanner` varchar(150) DEFAULT NULL,
`shopHomeTheme` varchar(200) NOT NULL DEFAULT 'shop_home',
`mobileShopHomeTheme` varchar(200) NOT NULL DEFAULT 'shop_home',
`wechathopHomeTheme` varchar(200) NOT NULL DEFAULT 'shop_home',
`weappShopHomeTheme` varchar(200) DEFAULT 'shop_home',
`appShopHomeTheme` varchar(200) DEFAULT NULL,
`shopTitleWords` varchar(100) DEFAULT NULL,
PRIMARY KEY (`configId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='’‘张’‘京’‘';
68
CREATE TABLE `wst_shop_express` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`expressId` int(11) NOT NULL,
`isEnable` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:未启用 1:启用',
`insDefult` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:否 1:是',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '-1:无效 1:有效',
`shopId` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='’‘张’京‘’';
69
CREATE TABLE `wst_shop_extras` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`shopId` int(11) NOT NULL,
`businessLicenceType` tinyint(4) DEFAULT '0',
`businessLicence` varchar(100) DEFAULT NULL,
`licenseAddress` varchar(500) DEFAULT NULL,
`businessAreaPath` varchar(100) DEFAULT NULL COMMENT '以_分隔省市县',
`legalPersonName` varchar(100) DEFAULT NULL,
`estabilishimentDate` date DEFAULT NULL,
`businessStartDate` date DEFAULT NULL,
`businessEndDate` date DEFAULT NULL,
`isLongbusinessDate` tinyint(4) DEFAULT '0' COMMENT '1:是 0:否',
`registeredCapital` decimal(11,0) DEFAULT '0',
`empiricalRange` varchar(1000) DEFAULT NULL,
`legalCertificate Type` tinyint(4) DEFAULT '0',
`legalCertificate` varchar(50) DEFAULT NULL,
`legalCertificateStarDate` date DEFAULT NULL,
`legalCertificateEndDate` date DEFAULT NULL,
`isLonglegalCertificateDate` tinyint(4) DEFAULT '0' COMMENT '1:是 0:否',
`legalCertificatelmg` varchar(150) DEFAULT NULL,
`businessLicencelmg` varchar(150) DEFAULT NULL,
`bankAccountPermitlmg` varchar(150) DEFAULT NULL,
`organizationCode` varchar(100) DEFAULT NULL,
`organizationCodeStartDate` date DEFAULT NULL,
`organizationCodeEndDate` date DEFAULT NULL,
`isLongOrganizationCodeDate` tinyint(4) DEFAULT '0' COMMENT '1:是 0:否',
`organizationCodelmg` varchar(150) DEFAULT NULL,
`taxRegistrationCertificatlmg` varchar(450) DEFAULT NULL,
`taxpayerQualificationlmg` varchar(150) DEFAULT NULL,
`taxpayerType` tinyint(4) DEFAULT '0',
`taxpayerNo` varchar(100) DEFAULT NULL,
`applyLinkMan` varchar(50) DEFAULT NULL,
`applyLinkTel` varchar(50) DEFAULT NULL,
`applyLinkEmail` varchar(50) DEFAULT NULL,
`islnvestment` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1:有 0:无',
`investmentStaff` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
70
CREATE TABLE `wst_shop_flows` (
`flowId` int(11) NOT NULL AUTO_INCREMENT,
`flowName` varchar(100) NOT NULL,
`isShow` tinyint(4) DEFAULT '1' COMMENT '0:隐藏 1:显示',
`sort` tinyint(4) DEFAULT '0',
`isDelete` tinyint(4) DEFAULT '1' COMMENT '0:否 1:是',
`createTime` datetime NOT NULL,
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1:有效 -1:删除',
PRIMARY KEY (`flowId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
71
CREATE TABLE `wst_shop_freight_template` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`shopExpressId` int(11) NOT NULL,
`tempName` varchar(100) NOT NULL,
`tempType` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0:全国 1:指定地区',
`provinceIds` text,
`cityIds` text,
`buyNumStart` int(4) DEFAULT '0',
`buyNumStartPrince` decimal(11,2) DEFAULT '0.00',
`buyNumContinue` int(4) DEFAULT '0',
`buyNumContinuePrice` decimal(11,2) DEFAULT '0.00',
`weightStart` decimal(11,2) DEFAULT '0.00',
`weightStartPrice` decimal(11,2) DEFAULT '0.00',
`weightContinue` decimal(11,2) DEFAULT '0.00',
`weightContinuePrice` decimal(11,2) DEFAULT '0.00',
`volumeStart` decimal(11,2) DEFAULT '0.00',
`volumeStartPrice` decimal(11,2) DEFAULT '0.00',
`volumeContinue` decimal(11,2) DEFAULT '0.00',
`volumContinuePrice` decimal(11,2) DEFAULT '0.00',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1:有效 -1:删除',
`shopId` int(11) DEFAULT '0',
`createTime` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
72
CREATE TABLE `wst_shop_message_cats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`msgDateId` int(11) DEFAULT '0' COMMENT '1:商品审核提醒 2:新订单提醒 3:订单投诉提醒 4:订单失效提醒 5:退货退款提醒<br/&gt 6:结算信息提醒 7:订单评价提醒 8:收货提醒 9:商品举报提醒 10:售后消息提醒',
`msgType` tinyint(4) DEFAULT '0' COMMENT '1:商场消息 2:手机短信提醒 3:微信模版消息提醒',
`msgCode` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
73
CREATE TABLE `wst_shop_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`shopId` int(11) DEFAULT '0',
`roleName` varchar(100) DEFAULT NULL,
`privilegeMsgs` text,
`privilegeUrls` text COMMENT 'N/A',
`createTime` datetime DEFAULT NULL,
`dateFlag` tinyint(4) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
74
CREATE TABLE `wst_shop_scores` (
`scoreId` int(11) NOT NULL AUTO_INCREMENT,
`shopId` int(11) NOT NULL,
`totalScore` int(11) NOT NULL DEFAULT '0',
`totalUsers` int(11) NOT NULL DEFAULT '0',
`goodsScore` int(11) NOT NULL DEFAULT '0',
`goodsUsers` int(11) NOT NULL DEFAULT '0',
`serviceUsers` int(11) NOT NULL DEFAULT '0',
`timeScore` int(11) NOT NULL DEFAULT '0',
`timeUsers` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`scoreId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
75
CREATE TABLE `wst_shop_services` (
`shopId` int(11) NOT NULL AUTO_INCREMENT,
`creat Time` datetime DEFAULT NULL,
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '1:有效 -1:删除',
`serviceId` varchar(50) NOT NULL,
PRIMARY KEY (`shopId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='‘’张‘’京‘’';
76
CREATE TABLE `shop_styles 76` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`styleSys` varchar(255) DEFAULT NULL COMMENT '风格适应的系统 例如电脑端 ,手机端微信端',
`styleName` varchar(255) DEFAULT NULL COMMENT '风格名称',
`styleCat` tinyint(4) unsigned DEFAULT '0' COMMENT '风格所属类型',
`stylePath` varchar(255) DEFAULT NULL COMMENT '风格目录',
`screenshot` varchar(255) DEFAULT NULL COMMENT '缩略图路径',
`isShow` tinyint(4) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='’‘张’‘京’‘';
77
CREATE TABLE `shop_users` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`shopId` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
`userId` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`roleId` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效标识-1:无效1:有效',
`serviceId` varchar(50) NOT NULL COMMENT '客服ID',
`privilegeMsg Types` varchar(50) DEFAULT NULL COMMENT '接受信息类型权限',
`privilegeMsgs` varchar(200) DEFAULT NULL COMMENT '接受信息权限',
`privilegePhoneMsys` varchar(200) DEFAULT NULL COMMENT '接受短信权限',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='’‘张’‘京’‘';
78
CREATE TABLE `spec_cats` (
`catId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsCatId` int(11) NOT NULL DEFAULT '0' COMMENT '最后一级商品分类ID',
`goodsCatPath` varchar(100) NOT NULL COMMENT '商品分类路径',
`catName` varchar(255) NOT NULL COMMENT '类型名称',
`isAllowing` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否允许上传照片0:不允许1:允许',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示1:是0:否',
`catSort` int(11) DEFAULT '0' COMMENT '排序号',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志1:有效-1:无效',
`createTIme` datetime NOT NULL COMMENT '创建时间',
`shopID` int(11) DEFAULT '0' COMMENT '店铺ID 该值大于0说明店铺新增的规格',
PRIMARY KEY (`catId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='’‘张’‘京’‘';
79
CREATE TABLE `spec_items` (
`itemId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopId` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
`catId` int(11) NOT NULL DEFAULT '0' COMMENT '类型ID',
`goodsId` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
`itemName` varchar(100) NOT NULL COMMENT '项名称',
`itemDesc` varchar(255) DEFAULT NULL COMMENT '规格描述',
`itemimg` varchar(150) NOT NULL COMMENT '规格图片',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态1:有效-1:无效',
`createTIme` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`itemId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='’‘张’‘京’‘';