areas DDL
CREATE TABLE `areas` (
`areaId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`parentId` int(11) NOT NULL COMMENT '父Id',
`areaName` varchar(100) NOT NULL COMMENT '地域名称',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:是1:否)',
`areaSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`areaKey` char(10) NOT NULL COMMENT '地区首字母',
`areaType` tinyint(4) NOT NULL DEFAULT '1' COMMENT '级别标志(1:省2:市3:县区)',
`dataFlag` tinyint(4) NOT NULL COMMENT '删除标志(-1:删除1:有效)',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`areaId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ad_positions DDL
CREATE TABLE `ad_positions` (
`positionId` int(11) NOT NULL AUTO_INCREMENT 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 '建议高度',
`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;