表1——商家认证项目表 (guo_accreds)
CREATE TABLE `guo_accreds` (
`accredId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`accredName` varchar(50) NOT NULL COMMENT '名称',
`accredimg` varchar(150) NOT NULL DEFAULT '0' COMMENT '图标',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1有效)',
`create Time` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`accredId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商家认证项目表 (guo_accreds)';
表2——插件表(guo_addons)
CREATE TABLE `guo_addons` (
`addonId` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`name` varchar(40) NOT NULL COMMENT '插件名称',
`title` varchar(20) NOT NULL COMMENT '插件标题',
`description` text COMMENT '插件描述',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '插件状态(0:未安装 1:启用 2:禁用)',
`config` text NOT NULL COMMENT '插件配置参数json',
`author` varchar(40) NOT NULL COMMENT '插件作者',
`version` varchar(20) DEFAULT NULL COMMENT '插件版本号',
`create Time` datetime NOT NULL COMMENT '创建时间',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效标识',
`isConfig` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否配置',
`update Time` datetime NOT NULL COMMENT '修改时间',
PRIMARY KEY (`addonId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='插件表(guo_addons)';
表3——广告表(guo_ads)
CREATE TABLE `guo_ads` (
`adId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`adPositionId` int(11) NOT NULL COMMENT '广告位置ID',
`adFile` varchar(150) NOT NULL COMMENT '广告文件',
`adName` varchar(100) NOT NULL COMMENT '广告名称',
`adURL` varchar(255) NOT NULL COMMENT '广告网址',
`adStartDate` date NOT NULL COMMENT '广告开始时间',
`adEndDate` date NOT NULL COMMENT '广告结束时间',
`adSort` int(11) NOT NULL COMMENT '排序号',
`adClickNum` int(11) NOT NULL COMMENT '广告点击数',
`position Type` tinyint(4) DEFAULT NULL COMMENT '广告类型',
`dataFlag` tinyint(4) NOT NULL COMMENT '删除标志',
`create Time` datetime NOT NULL COMMENT '创建时间',
`sub Title` varchar(255) DEFAULT NULL COMMENT '副标题',
PRIMARY KEY (`adId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='广告表(guo_ads)';
表4——(guo_ad_positions)
CREATE TABLE `guo_ad_positions` (
`positionId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`position Type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '广告类型1:电脑端2:微信端3:手机端4:app端5:小程序端',
`positionName` varchar(100) NOT NULL COMMENT '广告位置名称',
`positionWidth` int(11) NOT NULL DEFAULT '0' COMMENT '建议宽度',
`positionHeight` int(11) NOT NULL DEFAULT '0' COMMENT '建议高度',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态1:有效-1:无效',
`positionCode` varchar(20) DEFAULT NULL COMMENT '广告位置代码N/A',
`apSort` int(11) NOT NULL COMMENT '排序号',
PRIMARY KEY (`positionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='广告位置表(guo_ad_positions)';