成长的88个表(一)

一 

CREATE TABLE `accreds` (
  `accredid` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  `accredName` varchar(50) NOT NULL COMMENT '名称',
  `accredimg` varchar(150) NOT NULL COMMENT '图标',
  `dateflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`accredid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `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 '插件状态',
  `config` text COMMENT '插件配置参数json',
  `author` varchar(40) DEFAULT NULL COMMENT '插件作者',
  `version` varchar(20) DEFAULT NULL COMMENT '插件版号',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  `dateflag` tinyint(4) DEFAULT '1' COMMENT '有效标识',
  `isconfig` tinyint(4) DEFAULT NULL COMMENT '是否配置',
  `updateTime` datetime DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`addonID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `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 '广告网址',
  `adstartdate` 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 '广告类型',
  `dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
  `createTime` datetime NOT NULL COMMENT '创建时间',
  `subtitle` varchar(255) DEFAULT NULL COMMENT '副标题',
  PRIMARY KEY (`adid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `ad_position` (
  `positionid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `positiontype` tinyint(4) NOT NULL DEFAULT '0' COMMENT '广告类型',
  `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 '有效状态',
  `positioncode` varchar(20) DEFAULT NULL COMMENT '广告位置代码',
  `apsort` int(11) NOT NULL COMMENT '排序号',
  PRIMARY KEY (`positionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

五 

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 '是否显示',
  `areasort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
  `areakey` char(10) NOT NULL COMMENT '地区首字母',
  `areatype` tinyint(4) NOT NULL DEFAULT '1' COMMENT '级别标志',
  `dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
  `createtime` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`areaid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `articles` (
  `articleid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `catid` int(11) NOT NULL COMMENT '分类id',
  `articletitle` varchar(200) NOT NULL COMMENT '文章标题',
  `isshow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示',
  `articlecontent` longtext NOT NULL COMMENT '文章内容',
  `articlekey` varchar(200) DEFAULT NULL COMMENT '关键字',
  `staffid` int(11) NOT NULL COMMENT '创建者',
  `dataflag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效时间',
  `createtime` datetime NOT NULL COMMENT '创建时间',
  `aolve` int(10) unsigned DEFAULT '0' COMMENT '觉得文章有帮助的次数',
  `unsolve` int(10) unsigned DEFAULT '0' COMMENT '觉得文章没帮助的次数',
  `coverimg` varchar(150) DEFAULT NULL COMMENT '文章封面照片',
  `visitornum` int(10) unsigned DEFAULT '0' COMMENT '阅览数',
  `typestatus` int(10) DEFAULT '1' COMMENT '布局类型',
  `likenum` int(10) DEFAULT '0' COMMENT '点赞数',
  `catsort` int(11) DEFAULT '0' COMMENT '排序号',
  `articledesc` varchar(600) NOT NULL COMMENT '文章描述',
  `ishide` tinyint(4) DEFAULT '0' COMMENT '是否隐瞒不可编辑/删除的文章',
  PRIMARY KEY (`articleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

  • 37
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值