码迷,mamicode.com
首页 > 其他好文 > 详细

单页模板的调用

时间:2020-05-10 01:01:05      阅读:58      评论:0      收藏:0      [点我收藏+]

标签:primary   flag   file   creat   key   tree   redirect   sort   主表   

dedecms :后台单页模板调用

文章主表:
CREATE TABLE `dede_archives` (
  `id` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `typeid` smallint(5) unsigned NOT NULL DEFAULT ‘0‘,
  `typeid2` varchar(90) NOT NULL DEFAULT ‘0‘,
  `sortrank` int(10) unsigned NOT NULL DEFAULT ‘0‘,
  `flag` set(‘c‘,‘h‘,‘p‘,‘f‘,‘s‘,‘j‘,‘a‘,‘m‘,‘y‘,‘b‘) DEFAULT NULL,
  `ismake` smallint(6) NOT NULL DEFAULT ‘0‘,
  `channel` smallint(6) NOT NULL DEFAULT ‘1‘,
  `arcrank` smallint(6) NOT NULL DEFAULT ‘0‘,
  `click` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `money` smallint(6) NOT NULL DEFAULT ‘0‘,
  `title` char(60) NOT NULL DEFAULT ‘‘,
  `shorttitle` char(36) NOT NULL DEFAULT ‘‘,
  `color` char(7) NOT NULL DEFAULT ‘‘,
  `writer` char(20) NOT NULL DEFAULT ‘‘,
  `source` char(30) NOT NULL DEFAULT ‘‘,
  `litpic` char(100) NOT NULL DEFAULT ‘‘,
  /**发布时间**/
  `pubdate` int(10) unsigned NOT NULL DEFAULT ‘0‘,
  `senddate` int(10) unsigned NOT NULL DEFAULT ‘0‘,
  `mid` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `keywords` char(50) NOT NULL DEFAULT ‘‘,
  `lastpost` int(10) unsigned NOT NULL DEFAULT ‘0‘,
  `scores` mediumint(8) NOT NULL DEFAULT ‘0‘,
  `goodpost` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `badpost` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `voteid` mediumint(8) NOT NULL,
  `notpost` tinyint(1) unsigned NOT NULL DEFAULT ‘0‘,
  `description` varchar(255) NOT NULL DEFAULT ‘‘,
  `filename` varchar(40) NOT NULL DEFAULT ‘‘,
  `dutyadmin` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `tackid` int(10) NOT NULL DEFAULT ‘0‘,
  `mtype` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `weight` int(10) NOT NULL DEFAULT ‘0‘,
  PRIMARY KEY (`id`),
  KEY `sortrank` (`sortrank`),
  KEY `mainindex` (`arcrank`,`typeid`,`channel`,`flag`,`mid`),
  KEY `lastpost` (`lastpost`,`scores`,`goodpost`,`badpost`,`notpost`),
  KEY `idx_typeid` (`typeid`),
  KEY `idx_typeid2` (`typeid2`),
  KEY `idx_click` (`click`) USING BTREE,
  KEY `pubdate` (`pubdate`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk ROW_FORMAT=DYNAMIC;
文章附加表:
CREATE TABLE `dede_addonarticle` (
  `aid` mediumint(8) unsigned NOT NULL DEFAULT ‘0‘,
  `typeid` smallint(5) unsigned NOT NULL DEFAULT ‘0‘,
  `body` mediumtext,
  `redirecturl` varchar(255) NOT NULL DEFAULT ‘‘,
  `templet` varchar(30) NOT NULL DEFAULT ‘‘,
  `userip` char(15) NOT NULL DEFAULT ‘‘,
  `fdzltype` smallint(5) unsigned NOT NULL DEFAULT ‘0‘,
  `province` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘省级地域标签‘,
  `city` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘市级地域标签‘,
  `examtype` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘考试类型标签‘,
  `bqzkxx` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘招考信息标签‘,
  `bqbkzd` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘报考指导标签‘,
  `bqstzl` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘试题资料标签‘,
  `bqstlx` int(10) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘试题类型标签‘,
  `mslbbq` int(5) DEFAULT ‘0‘ COMMENT ‘面试类别‘,
  `sllbbq` int(5) DEFAULT ‘0‘ COMMENT ‘申论类别‘,
  `bkggbmsj` varchar(50) NOT NULL COMMENT ‘报名时间‘,
  `bkggkssj` varchar(50) NOT NULL COMMENT ‘考试时间‘,
  `bkggksnr` text COMMENT ‘考试内容‘,
  `bkggzkrs` varchar(50) DEFAULT ‘‘ COMMENT ‘招考人数‘,
  PRIMARY KEY (`aid`),
  KEY `typeid` (`typeid`),
  KEY `province` (`province`),
  KEY `city` (`city`),
  KEY `examtype` (`examtype`),
  KEY `bqzkxx` (`bqzkxx`),
  KEY `bqbkzd` (`bqbkzd`),
  KEY `bqstzl` (`bqstzl`),
  KEY `bqstlx` (`bqstlx`)
) ENGINE=InnoDB DEFAULT CHARSET=gbk ROW_FORMAT=DYNAMIC;

 


 

单页模板的调用

标签:primary   flag   file   creat   key   tree   redirect   sort   主表   

原文地址:https://www.cnblogs.com/tangsujuan/p/12861375.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!