CREATE TABLE `snews` ( `sn` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '流水號', `focus` tinyint(2) unsigned NOT NULL COMMENT '精選', `topic_sn` tinyint(2) unsigned NOT NULL COMMENT '類別編號', `sort` tinyint(5) unsigned NOT NULL COMMENT '排序', `title` varchar(300) NOT NULL, `content` text NOT NULL, `username` varchar(65) NOT NULL, `create_time` datetime NOT NULL, `update_time` datetime NOT NULL, `uid` mediumint(8) unsigned NOT NULL COMMENT '使用者編號', PRIMARY KEY (`sn`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `snews_topic` ( `topic_sn` mediumint(9) NOT NULL AUTO_INCREMENT COMMENT '類別編號', `topic_title` varchar(255) NOT NULL COMMENT '類別或主題名稱', `topic_type` varchar(10) NOT NULL COMMENT '種類', `topic_description` text NOT NULL COMMENT '說明', `topic_status` enum('投稿中','當期','有效','已關閉') NOT NULL COMMENT '主題狀態', `username` varchar(65) NOT NULL COMMENT '建立者', `uid` mediumint(8) unsigned NOT NULL COMMENT '使用者編號', PRIMARY KEY (`topic_sn`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `snews_files_center` ( `files_sn` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '檔案流水號', `col_name` varchar(255) NOT NULL default '' COMMENT '欄位名稱', `col_sn` smallint(5) unsigned NOT NULL default 0 COMMENT '欄位編號', `sort` smallint(5) unsigned NOT NULL default 0 COMMENT '排序', `kind` enum('img','file') NOT NULL default 'img' COMMENT '檔案種類', `file_name` varchar(255) NOT NULL default '' COMMENT '檔案名稱', `file_type` varchar(255) NOT NULL default '' COMMENT '檔案類型', `file_size` int(10) unsigned NOT NULL default 0 COMMENT '檔案大小', `description` text NOT NULL COMMENT '檔案說明', `counter` mediumint(8) unsigned NOT NULL default 0 COMMENT '下載人次', `original_filename` varchar(255) NOT NULL default '' COMMENT '檔案名稱', `hash_filename` varchar(255) NOT NULL default '' COMMENT '加密檔案名稱', `sub_dir` varchar(255) NOT NULL default '' COMMENT '檔案子路徑', PRIMARY KEY (`files_sn`) ) ENGINE=MyISAM; ```
進階搜尋
69人線上 (14人在瀏覽線上書籍)
會員: 0
訪客: 69