install.sql 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. -- -----------------------------
  2. -- 导出时间 `2016-12-13 22:26:46`
  3. -- -----------------------------
  4. -- -----------------------------
  5. -- 表结构 `dp_cms_advert`
  6. -- -----------------------------
  7. DROP TABLE IF EXISTS `dp_cms_advert`;
  8. CREATE TABLE `dp_cms_advert` (
  9. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  10. `typeid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '分类id',
  11. `tagname` varchar(30) NOT NULL DEFAULT '' COMMENT '广告位标识',
  12. `ad_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '广告类型',
  13. `timeset` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '时间限制:0-永不过期,1-在设内时间内有效',
  14. `start_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
  15. `end_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
  16. `name` varchar(60) NOT NULL DEFAULT '' COMMENT '广告位名称',
  17. `content` text NOT NULL COMMENT '广告内容',
  18. `expcontent` text NOT NULL COMMENT '过期显示内容',
  19. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  20. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  21. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  22. PRIMARY KEY (`id`)
  23. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='广告表';
  24. -- -----------------------------
  25. -- 表数据 `dp_cms_advert`
  26. -- -----------------------------
  27. -- -----------------------------
  28. -- 表结构 `dp_cms_advert_type`
  29. -- -----------------------------
  30. DROP TABLE IF EXISTS `dp_cms_advert_type`;
  31. CREATE TABLE `dp_cms_advert_type` (
  32. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  33. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '分类名称',
  34. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  35. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  36. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='广告分类表';
  39. -- -----------------------------
  40. -- 表数据 `dp_cms_advert_type`
  41. -- -----------------------------
  42. -- -----------------------------
  43. -- 表结构 `dp_cms_column`
  44. -- -----------------------------
  45. DROP TABLE IF EXISTS `dp_cms_column`;
  46. CREATE TABLE `dp_cms_column` (
  47. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  48. `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父级id',
  49. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '栏目名称',
  50. `model` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文档模型id',
  51. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接',
  52. `target` varchar(16) NOT NULL DEFAULT '_self' COMMENT '链接打开方式',
  53. `content` text NOT NULL COMMENT '内容',
  54. `icon` varchar(64) NOT NULL DEFAULT '' COMMENT '字体图标',
  55. `index_template` varchar(32) NOT NULL DEFAULT '' COMMENT '封面模板',
  56. `list_template` varchar(32) NOT NULL DEFAULT '' COMMENT '列表页模板',
  57. `detail_template` varchar(32) NOT NULL DEFAULT '' COMMENT '详情页模板',
  58. `post_auth` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '投稿权限',
  59. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  60. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  61. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  62. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  63. `hide` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
  64. `rank_auth` int(11) NOT NULL DEFAULT '0' COMMENT '浏览权限,-1待审核,0为开放浏览,大于0则为对应的用户角色id',
  65. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '栏目属性:0-最终列表栏目,1-外部链接,2-频道封面',
  66. PRIMARY KEY (`id`)
  67. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='栏目表';
  68. -- -----------------------------
  69. -- 表数据 `dp_cms_column`
  70. -- -----------------------------
  71. -- -----------------------------
  72. -- 表结构 `dp_cms_document`
  73. -- -----------------------------
  74. DROP TABLE IF EXISTS `dp_cms_document`;
  75. CREATE TABLE `dp_cms_document` (
  76. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  77. `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '栏目id',
  78. `model` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文档模型ID',
  79. `title` varchar(256) NOT NULL DEFAULT '' COMMENT '标题',
  80. `shorttitle` varchar(32) NOT NULL DEFAULT '' COMMENT '简略标题',
  81. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
  82. `flag` set('j','p','b','s','a','f','c','h') DEFAULT NULL COMMENT '自定义属性',
  83. `view` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阅读量',
  84. `comment` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评论数',
  85. `good` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '点赞数',
  86. `bad` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '踩数',
  87. `mark` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '收藏数量',
  88. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  89. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  90. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  91. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  92. `trash` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '回收站',
  93. PRIMARY KEY (`id`)
  94. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='文档基础表';
  95. -- -----------------------------
  96. -- 表数据 `dp_cms_document`
  97. -- -----------------------------
  98. -- -----------------------------
  99. -- 表结构 `dp_cms_field`
  100. -- -----------------------------
  101. DROP TABLE IF EXISTS `dp_cms_field`;
  102. CREATE TABLE `dp_cms_field` (
  103. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '字段名称',
  104. `name` varchar(32) NOT NULL,
  105. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '字段标题',
  106. `type` varchar(32) NOT NULL DEFAULT '' COMMENT '字段类型',
  107. `define` varchar(128) NOT NULL DEFAULT '' COMMENT '字段定义',
  108. `value` text NULL COMMENT '默认值',
  109. `options` text NULL COMMENT '额外选项',
  110. `tips` varchar(256) NOT NULL DEFAULT '' COMMENT '提示说明',
  111. `fixed` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否为固定字段',
  112. `show` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示',
  113. `model` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所属文档模型id',
  114. `ajax_url` varchar(256) NOT NULL DEFAULT '' COMMENT '联动下拉框ajax地址',
  115. `next_items` varchar(256) NOT NULL DEFAULT '' COMMENT '联动下拉框的下级下拉框名,多个以逗号隔开',
  116. `param` varchar(32) NOT NULL DEFAULT '' COMMENT '联动下拉框请求参数名',
  117. `format` varchar(32) NOT NULL DEFAULT '' COMMENT '格式,用于格式文本',
  118. `table` varchar(32) NOT NULL DEFAULT '' COMMENT '表名,只用于快速联动类型',
  119. `level` tinyint(2) unsigned NOT NULL DEFAULT '2' COMMENT '联动级别,只用于快速联动类型',
  120. `key` varchar(32) NOT NULL DEFAULT '' COMMENT '键字段,只用于快速联动类型',
  121. `option` varchar(32) NOT NULL DEFAULT '' COMMENT '值字段,只用于快速联动类型',
  122. `pid` varchar(32) NOT NULL DEFAULT '' COMMENT '父级id字段,只用于快速联动类型',
  123. `ak` varchar(32) NOT NULL DEFAULT '' COMMENT '百度地图appkey',
  124. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  125. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  126. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  127. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  128. PRIMARY KEY (`id`)
  129. ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='文档字段表';
  130. -- -----------------------------
  131. -- 表数据 `dp_cms_field`
  132. -- -----------------------------
  133. INSERT INTO `dp_cms_field` VALUES ('1', 'id', 'ID', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', 'ID', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480562978', '1480562978', '100', '1');
  134. INSERT INTO `dp_cms_field` VALUES ('2', 'cid', '栏目', 'select', 'int(11) UNSIGNED NOT NULL', '0', '', '请选择所属栏目', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480562978', '1480562978', '100', '1');
  135. INSERT INTO `dp_cms_field` VALUES ('3', 'uid', '用户ID', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563110', '1480563110', '100', '1');
  136. INSERT INTO `dp_cms_field` VALUES ('4', 'model', '模型ID', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563110', '1480563110', '100', '1');
  137. INSERT INTO `dp_cms_field` VALUES ('5', 'title', '标题', 'text', 'varchar(128) NOT NULL', '', '', '文档标题', '0', '1', '0', '', '', '', '', '', '0', '', '', '', '', '1480575844', '1480576134', '1', '1');
  138. INSERT INTO `dp_cms_field` VALUES ('6', 'shorttitle', '简略标题', 'text', 'varchar(32) NOT NULL', '', '', '简略标题', '0', '1', '0', '', '', '', '', '', '0', '', '', '', '', '1480575844', '1480576134', '1', '1');
  139. INSERT INTO `dp_cms_field` VALUES ('7', 'flag', '自定义属性', 'checkbox', 'set(\'j\',\'p\',\'b\',\'s\',\'a\',\'f\',\'h\',\'c\') NULL DEFAULT NULL', '', 'j:跳转\r\np:图片\r\nb:加粗\r\ns:滚动\r\na:特荐\r\nf:幻灯\r\nh:头条\r\nc:推荐', '自定义属性', '0', '1', '0', '', '', '', '', '', '0', '', '', '', '', '1480671258', '1480671258', '100', '1');
  140. INSERT INTO `dp_cms_field` VALUES ('8', 'view', '阅读量', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '1', '0', '', '', '', '', '', '0', '', '', '', '', '1480563149', '1480563149', '100', '1');
  141. INSERT INTO `dp_cms_field` VALUES ('9', 'comment', '评论数', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563189', '1480563189', '100', '1');
  142. INSERT INTO `dp_cms_field` VALUES ('10', 'good', '点赞数', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563279', '1480563279', '100', '1');
  143. INSERT INTO `dp_cms_field` VALUES ('11', 'bad', '踩数', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563330', '1480563330', '100', '1');
  144. INSERT INTO `dp_cms_field` VALUES ('12', 'mark', '收藏数量', 'text', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563372', '1480563372', '100', '1');
  145. INSERT INTO `dp_cms_field` VALUES ('13', 'create_time', '创建时间', 'datetime', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563406', '1480563406', '100', '1');
  146. INSERT INTO `dp_cms_field` VALUES ('14', 'update_time', '更新时间', 'datetime', 'int(11) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563432', '1480563432', '100', '1');
  147. INSERT INTO `dp_cms_field` VALUES ('15', 'sort', '排序', 'text', 'int(11) NOT NULL', '100', '', '', '0', '1', '0', '', '', '', '', '', '0', '', '', '', '', '1480563510', '1480563510', '100', '1');
  148. INSERT INTO `dp_cms_field` VALUES ('16', 'status', '状态', 'radio', 'tinyint(2) UNSIGNED NOT NULL', '1', '0:禁用\r\n1:启用', '', '0', '1', '0', '', '', '', '', '', '0', '', '', '', '', '1480563576', '1480563576', '100', '1');
  149. INSERT INTO `dp_cms_field` VALUES ('17', 'trash', '回收站', 'text', 'tinyint(2) UNSIGNED NOT NULL', '0', '', '', '0', '0', '0', '', '', '', '', '', '0', '', '', '', '', '1480563576', '1480563576', '100', '1');
  150. -- -----------------------------
  151. -- 表结构 `dp_cms_link`
  152. -- -----------------------------
  153. DROP TABLE IF EXISTS `dp_cms_link`;
  154. CREATE TABLE `dp_cms_link` (
  155. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  156. `type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '类型:1-文字链接,2-图片链接',
  157. `title` varchar(128) NOT NULL DEFAULT '' COMMENT '链接标题',
  158. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  159. `logo` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '链接LOGO',
  160. `contact` varchar(255) NOT NULL DEFAULT '' COMMENT '联系方式',
  161. `sort` int(11) NOT NULL DEFAULT '100',
  162. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  163. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  164. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  165. PRIMARY KEY (`id`)
  166. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='有钱链接表';
  167. -- -----------------------------
  168. -- 表数据 `dp_cms_link`
  169. -- -----------------------------
  170. -- -----------------------------
  171. -- 表结构 `dp_cms_menu`
  172. -- -----------------------------
  173. DROP TABLE IF EXISTS `dp_cms_menu`;
  174. CREATE TABLE `dp_cms_menu` (
  175. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  176. `nid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '导航id',
  177. `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父级id',
  178. `column` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '栏目id',
  179. `page` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '单页id',
  180. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '类型:0-栏目链接,1-单页链接,2-自定义链接',
  181. `title` varchar(128) NOT NULL DEFAULT '' COMMENT '菜单标题',
  182. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接',
  183. `css` varchar(64) NOT NULL DEFAULT '' COMMENT 'css类',
  184. `rel` varchar(64) NOT NULL DEFAULT '' COMMENT '链接关系网',
  185. `target` varchar(16) NOT NULL DEFAULT '' COMMENT '打开方式',
  186. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  187. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  188. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  189. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  190. PRIMARY KEY (`id`)
  191. ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='菜单表';
  192. -- -----------------------------
  193. -- 表数据 `dp_cms_menu`
  194. -- -----------------------------
  195. INSERT INTO `dp_cms_menu` VALUES ('1', '1', '0', '0', '0', '2', '首页', 'cms/index/index', '', '', '_self', '1492345605', '1492345605', '100', '1');
  196. INSERT INTO `dp_cms_menu` VALUES ('2', '2', '0', '0', '0', '2', '关于我们', 'http://www.dolphinphp.com', '', '', '_self', '1492346763', '1492346763', '100', '1');
  197. INSERT INTO `dp_cms_menu` VALUES ('3', '3', '0', '0', '0', '2', '开发文档', 'http://www.kancloud.cn/ming5112/dolphinphp', '', '', '_self', '1492346812', '1492346812', '100', '1');
  198. INSERT INTO `dp_cms_menu` VALUES ('4', '3', '0', '0', '0', '2', '开发者社区', 'http://bbs.dolphinphp.com/', '', '', '_self', '1492346832', '1492346832', '100', '1');
  199. INSERT INTO `dp_cms_menu` VALUES ('5', '1', '0', '0', '0', '2', '二级菜单', 'http://www.dolphinphp.com', '', '', '_self', '1492347372', '1492347510', '100', '1');
  200. INSERT INTO `dp_cms_menu` VALUES ('6', '1', '5', '0', '0', '2', '子菜单', 'http://www.dolphinphp.com', '', '', '_self', '1492347388', '1492347520', '100', '1');
  201. -- -----------------------------
  202. -- 表结构 `dp_cms_model`
  203. -- -----------------------------
  204. DROP TABLE IF EXISTS `dp_cms_model`;
  205. CREATE TABLE `dp_cms_model` (
  206. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  207. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '模型名称',
  208. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '模型标题',
  209. `table` varchar(64) NOT NULL DEFAULT '' COMMENT '附加表名称',
  210. `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '模型类别:0-系统模型,1-普通模型,2-独立模型',
  211. `icon` varchar(64) NOT NULL,
  212. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  213. `system` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否系统模型',
  214. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  215. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  216. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  217. PRIMARY KEY (`id`)
  218. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='内容模型表';
  219. -- -----------------------------
  220. -- 表结构 `dp_cms_nav`
  221. -- -----------------------------
  222. DROP TABLE IF EXISTS `dp_cms_nav`;
  223. CREATE TABLE `dp_cms_nav` (
  224. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  225. `tag` varchar(32) NOT NULL DEFAULT '' COMMENT '导航标识',
  226. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '菜单标题',
  227. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  228. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  229. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  230. PRIMARY KEY (`id`)
  231. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='导航表';
  232. -- -----------------------------
  233. -- 表数据 `dp_cms_nav`
  234. -- -----------------------------
  235. INSERT INTO `dp_cms_nav` VALUES ('1', 'main_nav', '顶部导航', '1492345083', '1492345083', '1');
  236. INSERT INTO `dp_cms_nav` VALUES ('2', 'about_nav', '底部关于', '1492346685', '1492346685', '1');
  237. INSERT INTO `dp_cms_nav` VALUES ('3', 'support_nav', '服务与支持', '1492346715', '1492346715', '1');
  238. -- -----------------------------
  239. -- 表结构 `dp_cms_page`
  240. -- -----------------------------
  241. DROP TABLE IF EXISTS `dp_cms_page`;
  242. CREATE TABLE `dp_cms_page` (
  243. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  244. `title` varchar(64) NOT NULL DEFAULT '' COMMENT '单页标题',
  245. `content` mediumtext NOT NULL COMMENT '单页内容',
  246. `keywords` varchar(32) NOT NULL DEFAULT '' COMMENT '关键词',
  247. `description` varchar(250) NOT NULL DEFAULT '' COMMENT '页面描述',
  248. `template` varchar(32) NOT NULL DEFAULT '' COMMENT '模板文件',
  249. `cover` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '单页封面',
  250. `view` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阅读量',
  251. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  252. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  253. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  254. PRIMARY KEY (`id`)
  255. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='单页表';
  256. -- -----------------------------
  257. -- 表数据 `dp_cms_page`
  258. -- -----------------------------
  259. -- -----------------------------
  260. -- 表结构 `dp_cms_slider`
  261. -- -----------------------------
  262. DROP TABLE IF EXISTS `dp_cms_slider`;
  263. CREATE TABLE `dp_cms_slider` (
  264. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  265. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '标题',
  266. `cover` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '封面id',
  267. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  268. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  269. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  270. `sort` int(11) unsigned NOT NULL DEFAULT '100' COMMENT '排序',
  271. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  272. PRIMARY KEY (`id`)
  273. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='滚动图片表';
  274. -- -----------------------------
  275. -- 表数据 `dp_cms_slider`
  276. -- -----------------------------
  277. -- -----------------------------
  278. -- 表结构 `dp_cms_support`
  279. -- -----------------------------
  280. DROP TABLE IF EXISTS `dp_cms_support`;
  281. CREATE TABLE `dp_cms_support` (
  282. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  283. `name` varchar(128) NOT NULL DEFAULT '' COMMENT '客服名称',
  284. `qq` varchar(16) NOT NULL DEFAULT '' COMMENT 'QQ',
  285. `msn` varchar(100) NOT NULL DEFAULT '' COMMENT 'msn',
  286. `taobao` varchar(100) NOT NULL DEFAULT '' COMMENT 'taobao',
  287. `alibaba` varchar(100) NOT NULL DEFAULT '' COMMENT 'alibaba',
  288. `skype` varchar(100) NOT NULL DEFAULT '' COMMENT 'skype',
  289. `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  290. `sort` int(11) unsigned NOT NULL DEFAULT '100' COMMENT '排序',
  291. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  292. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  293. PRIMARY KEY (`id`)
  294. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='客服表';
  295. -- -----------------------------
  296. -- 表数据 `dp_cms_support`
  297. -- -----------------------------