70
CREATE TABLE `店铺入驻流程表shop_flows` (
`flowId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`flowName` varchar(100) NOT NULL COMMENT '流程名称',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否显示 0:隐藏 1:显示',
`sort` tinyint(4) DEFAULT '0' COMMENT '显示排序',
`isDelete` tinyint(4) DEFAULT NULL COMMENT '是否可以删除0:否 1:是',
`createTime` datetime NOT NULL COMMENT '创建时间',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态 1:有效 -1删除',
PRIMARY KEY (`flowId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
71
CREATE TABLE `店铺运费模板表shop_freight_template` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`shopExpressId` int(11) NOT NULL COMMENT '快递ID',
`tempName` varchar(100) NOT NULL COMMENT '模板名称',
`tempType` tinyint(4) DEFAULT '1' COMMENT '模板范围(0:全国;1:指定地区)',
`provinceIds` text COMMENT '省份ID数组',
`cityId` text COMMENT '城市ID数组',
`buyNumStart` int(4) DEFAULT '0' COMMENT '首件(件)',
`buyNumStartPrice` decimal(11,2) DEFAULT '0.00' COMMENT '首件运费(元)',
`buyNumContinue` int(4) DEFAULT '0' COMMENT '续件(件)',
`buyNumContinuePrise` decimal(11,2) DEFAULT '0.00' COMMENT '续重价格',
`weightStart` decimal(11,2) DEFAULT '0.00' COMMENT '首重(Kg)',
`weightStartPrice` decimal(11,2) DEFAULT '0.00' COMMENT '首重价格',
`weightContinue` decimal(11,2) DEFAULT '0.00' COMMENT '续重(Kg)',
`weightContinuePrice` decimal(11,2) DEFAULT '0.00' COMMENT '续重价格',
`volumeStart` decimal(11,2) DEFAULT '0.00' COMMENT '首体积量(m3)',
`volumeStartPrice` decimal(11,2) DEFAULT '0.00' COMMENT '首体积运费(元)',
`volumeContinue` decimal(11,2) DEFAULT '0.00' COMMENT '续体积量(m3)',
`volumeContinuePrice` decimal(11,2) DEFAULT '0.00' COMMENT '续体积运费',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标记(1:有效;-1:删除)',
`shopId` int(11) DEFAULT '0' COMMENT '店铺ID',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
72
CREATE TABLE `消息类型表shop_message_cats` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`msgDataId` int(11) DEFAULT '0' COMMENT '消息标识ID',
`msgType` tinyint(4) DEFAULT '0' COMMENT '消息类型',
`msgCode` varchar(100) DEFAULT NULL COMMENT '消息代码',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
73
CREATE TABLE `店铺角色表shop_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`shopId` int(11) DEFAULT '0',
`roleName` varchar(100) DEFAULT NULL,
`privilegeMsgs` text,
`privilegeUrls` text,
`createTime` datetime DEFAULT NULL,
`dataFlag` tinyint(4) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
74
CREATE TABLE `店铺评分表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=InnoDB DEFAULT CHARSET=utf8;
75
CREATE TABLE `客服系统-设置表shop_services` (
`shopId` int(11) NOT NULL AUTO_INCREMENT COMMENT '所对应的店铺ID',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效状态 1:有效 -1:删除',
`service` varchar(50) NOT NULL COMMENT '店铺客服ID',
PRIMARY KEY (`shopId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;