##posts (Portal文章表)
>說明:“文章管理”和“頁面管理”都是這個表,用 `post_type` 這個字段來區分!這個字段默認為空,2表示“頁面管理”!
|字段|類型|Null|默認|注釋|
| -- | -- | -- | -- | -- |
|id auto_increment|bigint(20) unsigned|否||自增ID|
|post_author|bigint(20) unsigned||0|發表者id|
|post_keywords|varchar(150)|否||seo keywords|
|post_source|varchar(150)|||轉載文章的來源|
|post_date|datetime||2016-01-01 00:00:00|post創建日期,永久不變,一般不顯示給用戶|
|post_content|longtext|||post內容|
|post_title|text|||post標題|
|post_excerpt|text|||post摘要|
|post_status|int(2)||1|post狀態,1已審核,0未審核|
|comment_status|int(2)||1|評論狀態,1允許,0不允許|
|post_modified|datetime||2016-01-01 00:00:00|post更新時間,可在前臺修改,顯示給用戶|
|post_content_filtered|longtext|||過濾關鍵詞(沒顯示)|
|post_parent|bigint(20) unsigned||0|post的父級post id,表示post層級關系|
|post_type|int(2)|||默認為空,2表示頁面管理|
|post_mime_type|varchar(100)||||
|comment_count|bigint(20)||0||
|smeta|text|||post的擴展字段,保存相關擴展屬性,如縮略圖;格式為json|
|post_hits|int(11)||0|post點擊數,查看數|
|post_like|int(11)||0|post贊數|
|istop|tinyint(1)|否|0|置頂,1置頂,0不置頂|
|recommended|tinyint(1)|否|0|推薦,1推薦,0不推薦|
相關的SQL語句如下:
```
DROP TABLE IF EXISTS `new_posts`;
CREATE TABLE `cmf_posts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_author` bigint(20) unsigned DEFAULT '0' COMMENT '發表者id',
`post_keywords` varchar(150) NOT NULL COMMENT 'seo keywords',
`post_source` varchar(150) DEFAULT NULL COMMENT '轉載文章的來源',
`post_date` datetime DEFAULT '2000-01-01 00:00:00' COMMENT 'post創建日期,永久不變,一般不顯示給用戶',
`post_content` longtext COMMENT 'post內容',
`post_title` text COMMENT 'post標題',
`post_excerpt` text COMMENT 'post摘要',
`post_status` int(2) DEFAULT '1' COMMENT 'post狀態,1已審核,0未審核',
`comment_status` int(2) DEFAULT '1' COMMENT '評論狀態,1允許,0不允許',
`post_modified` datetime DEFAULT '2000-01-01 00:00:00' COMMENT 'post更新時間,可在前臺修改,顯示給用戶',
`post_content_filtered` longtext,
`post_parent` bigint(20) unsigned DEFAULT '0' COMMENT 'post的父級post id,表示post層級關系',
`post_type` int(2) DEFAULT NULL COMMENT '默認為空,2表示頁面管理',
`post_mime_type` varchar(100) DEFAULT '',
`comment_count` bigint(20) DEFAULT '0',
`smeta` text COMMENT 'post的擴展字段,保存相關擴展屬性,如縮略圖;格式為json',
`post_hits` int(11) DEFAULT '0' COMMENT 'post點擊數,查看數',
`post_like` int(11) DEFAULT '0' COMMENT 'post贊數',
`istop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '置頂 1置頂; 0不置頂',
`recommended` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推薦 1推薦 0不推薦',
PRIMARY KEY (`id`),
KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`id`),
KEY `post_parent` (`post_parent`),
KEY `post_author` (`post_author`),
KEY `post_date` (`post_date`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=216 DEFAULT CHARSET=utf8 COMMENT='Portal文章表';
```
- 前言
- 第一章 基礎知識
- 圖片上傳
- 第二章 功能模塊數據字典
- 1.1門戶管理
- 門戶管理模塊
- term_relationships 文章分類對應表
- terms 文章分類表
- posts 文章表
- 1.2課程系統
- 課程系統模塊
- card 點卡管理
- cardtype 點卡類型
- application 申請教師
- course 課程管理
- coursetype 課程分類
- label 標簽管理
- material 資料列表
- order 訂單管理
- section 課時管理
- teacher_order 教師審核
- tixian 提現
- usercourse 用戶課程
- users 用戶表
- 1.3家庭檔案(健康家)
- 家庭檔案模塊
- family_files 家庭檔案表
- file_classify 家庭檔案分類表
- users_health 健康家用戶
- 1.4商城系統
- 商城系統模塊
- 商城配置
- 商品-訂單模塊
- 2.1系統設置
- 系統設置模塊
- option 全站配置表
- 3.1用戶管理
- 用戶管理模塊
- users 用戶表
- oauth_user 第三方用戶表
- user_favorites 用戶收藏表
- common_action_log 點贊記錄表
- 3.2RBAC管理
- RBAC管理模塊
- role 角色表
- role_user 用戶角色對應表
- auth_access 權限授權表
- auth_rules 權限規則表
- 3.3菜單管理
- 菜單模塊
- menu 后臺菜單表
- nav 前臺導航表
- nav_cate 前臺導航分類表
- route URL路由表
- 4.1評論管理
- 評論管理模塊
- comments 評論表
- 4.2幻燈管理
- 幻燈管理模塊
- slide 幻燈片表
- slide_cat 幻燈片分類表
- 4.3友情鏈接模塊
- links 友情鏈接表
- 4.4廣告管理模塊
- ad 廣告表
- 4.5留言管理
- guestbook 留言表
- 4.6 微信管理模塊
- wx_user 微信用戶
- wx_keyword 關鍵詞
- wx_menu 微信菜單
- wx_text 文本回復
- wx_img 微信圖文
- wx_news 圖文消息?
- 5.1插件管理模塊
- 插件模塊
- plugins 插件表
- district 中國省市區鄉鎮數據表
- 5.2擴展工具
- asset 資源表
- famous 名人名言表
- 區域管理
- region 區域管理
- 第三章 系統模塊
- 門戶系統
- 教學系統
- 博客系統
- 醫療系統
- 商城系統
- 一站式檢測系統
- 第四章 視頻教程
- 4.1 NewThink視頻教程
- 4.2 ApiCloud視頻教程
- 4.3 ThinkPHP視頻教程
- 4.4 JQuery視頻教程
- 4.5 PHP視頻教程
- 4.6 IOS視頻教程
- 第五章 PHP加解密
- 5.1 PHP解密
- 5.2 PHP加密
- 第六章 后臺菜單
- 第七章 前端模塊
- 下拉刷新
- 輪播特效
- 獲得焦點時-加黑色蒙版動畫
- 獲得焦點時-圖片抖動動畫
- 導航下拉隱藏上拉顯示
- 菜單高亮顯示
- 商品大菜單
- 六宮格
- 第八章 工具類
- 相關知識
- 附件一:nav.php
- git沖突的解決辦法