1商家认证项目表
CREATE TABLE `iua_accreds` (
`accredld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`accredName` varchar(50) NOT NULL COMMENT '名称',
`accreding` varchar(150) NOT NULL DEFAULT '0' COMMENT '图标',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除图标(-1:删除 1:有效)',
`creatTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`accredld`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商家认证项目表';
![](https://img-blog.csdnimg.cn/direct/e6bdb77708904370b117ef660342440f.png)
2插件表
CREATE TABLE `iua_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 COMMENT '插件配置参数json',
`author` varchar(40) DEFAULT NULL COMMENT '插件作者',
`version` varchar(20) DEFAULT NULL COMMENT '插件版本号',
`creatTime` datetime NOT NULL COMMENT '创建时间',
`dateFlag` tinyint(4) DEFAULT '1' COMMENT '有效标识(1:有效 -1:删除)',
`isConfig` tinyint(4) DEFAULT '0' COMMENT '是否配置(1:已配置 0:未配置)',
`updateTime` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`addonid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='插件表';
![](https://img-blog.csdnimg.cn/direct/f543819596d4456296cb0507a95fe496.png)
3广告表
CREATE TABLE `iua_ads` (
`adid` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`adPositionid` int(11) NOT NULL DEFAULT '0' COMMENT '广告位置ID',
`adFile` varchar(150) NOT NULL COMMENT '广告文件',
`adName` varchar(100) NOT NULL COMMENT '广告名称',
`adURL` varchar(255) NOT NULL COMMENT '广告网址',
`adStarDate` date NOT NULL COMMENT '广告开始日期',
`adEndDate` date NOT NULL COMMENT '广告结束日期',
`adSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`adClickNum` int(11) NOT NULL DEFAULT '0' COMMENT '广告点击数',
`positionType` tinyint(4) DEFAULT '0' COMMENT '广告类型(1:电脑端 2:微信端 3:手机端 4:app端 5:小程序端)',
`creatTime` datetime NOT NULL COMMENT '创建时间',
`subTitle` varchar(255) DEFAULT NULL COMMENT '副标题',
PRIMARY KEY (`adid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='广告表';
![](https://img-blog.csdnimg.cn/direct/1f6bf50c92e844ad9ef7dbf566284e0b.png)
4广告位置表
CREATE TABLE `iua_ad_positions` (
`positionid` int(11) NOT NULL COMMENT '自增id',
`positionType` 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 '建议高度',
`dateFlag` 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='广告位置表';
![](https://img-blog.csdnimg.cn/direct/984b38e4327a46679056e02d08036dcf.png)