-- --------------------------------------------------
--
-- ftbbs! SQL file for installation
--
-- --------------------------------------------------


DROP TABLE IF EXISTS mydb_bbs_arrest;
CREATE TABLE mydb_bbs_arrest (
  ID int(11) NOT NULL AUTO_INCREMENT,
  Content char(50) default NULL,
  Kind char(50) default NULL,
  indbdate datetime default NULL,
  PRIMARY KEY  (ID),
  KEY ID (ID)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_bbs_cate;
CREATE TABLE mydb_bbs_cate (
  BBS_ID int(11) NOT NULL AUTO_INCREMENT,
  BBS_Cate_ID char(20) default NULL,
  BBS_Cate_PID char(50) default NULL,
  BBS_Cate_Name char(50) default NULL,
  BBS_Cate_Topic int(11) default NULL,
  BBS_Cate_Reply int(11) default '0',
  BBS_Cate_Manager_Name char(200) default NULL,
  BBS_Cate_Manager_Email char(50) default NULL,
  BBS_Cate_Qs int(11) default '0',
  treesign int(11) default '0',
  deleted int(11) default '0',
  Initial char(10) default NULL,
  display smallint(6) default '0',
  totop int(11) default '0',
  BBS_Cate_Note longtext,
  BBS_Cate_Board longtext,
  PRIMARY KEY  (BBS_ID),
  KEY BBS_ID (BBS_ID)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_bbs_poll;
CREATE TABLE mydb_bbs_poll (
  ID int(11) NOT NULL AUTO_INCREMENT,
  pid int(11) default '0',
  tptype char(50) default NULL,
  tpnl char(255) default NULL,
  piaoshu int(11) default '0',
  username char(50) default NULL,
  pttime datetime default NULL,
  bgtime datetime default NULL,
  edtime datetime default NULL,
  PRIMARY KEY  (ID),
  KEY ID (ID)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_bbsmenu;
CREATE TABLE mydb_bbsmenu (
  id int(11) NOT NULL AUTO_INCREMENT,
  BoardID_1 char(20) default NULL,
  BoardID_2 char(20) default NULL,
  pid int(11) default NULL,
  user_id char(50) default NULL,
  re_name char(50) default NULL,
  remenu longtext,
  reip char(50) default NULL,
  dateh datetime default NULL,
  kind int(11) default NULL,
  deleted int(11) default NULL,
  usertype int(11) default '0',
  bbs_img char(50) default NULL,
  bbs_img_display int(11) default NULL,
  bbs_img_text char(100) default NULL,
  img_url char(150) default NULL,
  img_url_display int(11) default NULL,
  img_url_text char(100) default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_bbstitle;
CREATE TABLE mydb_bbstitle (
  ID int(11) NOT NULL AUTO_INCREMENT,
  BoardID_1 char(20) default NULL,
  BoardID_2 char(20) default NULL,
  user_id char(50) default NULL,
  name char(50) default NULL,
  mail char(50) default NULL,
  title char(50) default NULL,
  menu longtext,
  tel char(50) default NULL,
  ip char(50) default NULL,
  hit int(11) default '0',
  rep int(11) default '0',
  dateh datetime default NULL,
  deleted int(11) default '0',
  sign int(11) default '0',
  redate datetime default NULL,
  zhiye int(11) default '0',
  huati int(11) default '0',
  bbs_img char(50) default NULL,
  bbs_img_display int(11) default NULL,
  bbs_img_text char(100) default NULL,
  img_url char(150) default NULL,
  img_url_display int(11) default NULL,
  img_url_text char(100) default NULL,
  P_display int(11) default '0',
  showInHomepage tinyint(1) default '0',
  picture char(15) default NULL,
  htmfilename char(50) default NULL,
  postnum int(11) default '0',
  bbstop smallint(6) default '0',
  bbstop1 int(11) default '0',
  titlecolor char(15) default NULL,
  boardsign int(11) default '0',
  flag int(11) default '0',
  reinfo longtext,
  PRIMARY KEY  (ID),
  KEY ID (ID)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_clubuser;
CREATE TABLE mydb_clubuser (
  clubuser_id int(11) NOT NULL AUTO_INCREMENT,
  clubuser_name char(100) default NULL,
  clubuser_nickname char(50) default NULL,
  clubuser_password char(50) default NULL,
  clubuser_phone char(50) default NULL,
  clubuser_fax char(50) default NULL,
  clubuser_url char(50) default NULL,
  clubuser_email char(50) default NULL,
  clubuser_address char(50) default NULL,
  clubuser_note char(255) default NULL,
  clubuser_reg_date datetime default NULL,
  clubuser_enter_count smallint(6) default NULL,
  clubuser_ip char(50) default NULL,
  clubuser_sex char(10) default NULL,
  clubuser_old int(11) default NULL,
  clubuser_education char(50) default NULL,
  clubuser_career char(50) default NULL,
  clubuser_position char(50) default NULL,
  clubuser_salary char(50) default NULL,
  clubuser_marriage char(50) default NULL,
  clubuser_zip char(50) default NULL,
  clubuser_lasttime datetime default NULL,
  clubuser_question char(50) default NULL,
  clubuser_answer char(50) default NULL,
  clubuser_province char(50) default NULL,
  clubuser_city char(50) default NULL,
  payuser tinyint(3) unsigned default '0',
  lastloginip char(50) default NULL,
  baksign tinyint(3) unsigned default '0',
  signname longtext,
  jingyuan int(11) default '0',
  tili int(11) default '0',
  userimg char(15) default NULL,
  bbsmanager tinyint(3) unsigned default '0',
  bbsadmin int(11) default '0',
  friend longtext,
  JFM char(20) default NULL,
  jfmsign int(11) default '0',
  postnum int(11) default '0',
  clubuser_money int(11) default '0',
  homepagetitle char(80) default NULL,
  homepagesign int(11) default '0',
  blog_mid char(15) default NULL,
  blog_face char(50) default NULL,
  lyplsign int(11) default '0',
  photo_bg char(30) default NULL,
  userfloder char(15) default NULL,
  spacesize int(11) default '100',
  bokeer int(11) default '0',
  homepagehits int(11) default '0',
  cssfile char(50) default NULL,
  blogheadimg char(10) default NULL,
  PRIMARY KEY  (clubuser_id),
  KEY clubuser_id (clubuser_id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_ad;
CREATE TABLE mydb_ftbbs_ad (
  id int(11) NOT NULL AUTO_INCREMENT,
  adtitle char(100) default NULL,
  adurl char(120) default NULL,
  adcolor char(12) default NULL,
  adflag int(11) default '0',
  adtype int(11) default '0',
  begintime datetime default NULL,
  endtime datetime default NULL,
  ad_h int(5) default '0',
  ad_w int(5) default '0',
  ad_p int(5) default '0',
  bytime datetime default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_admin;
CREATE TABLE mydb_ftbbs_admin (
  id int(11) NOT NULL AUTO_INCREMENT,
  admin_user char(20) default NULL,
  admin_pwd char(50) default NULL,
  lasttime datetime default NULL,
  qs int(11) default '1',
  adminqs char(50) default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;

INSERT INTO mydb_ftbbs_admin (id, admin_user, admin_pwd, lasttime, qs, adminqs) VALUES 
(1, 'ftbbs', 'e10adc3949ba59abbe56e057f20f883e', '2007-06-24 09:14:36', 2, '1, 2, 3');


DROP TABLE IF EXISTS mydb_ftbbs_bmtb;
CREATE TABLE mydb_ftbbs_bmtb (
  id int(11) NOT NULL AUTO_INCREMENT,
  titleid int(11) default '0',
  username char(30) default NULL,
  tel char(30) default NULL,
  age int(11) default '0',
  sex char(5) default NULL,
  job char(50) default NULL,
  edu char(50) default NULL,
  address char(50) default NULL,
  flag int(11) default '0',
  infotype int(11) default '0',
  bakint int(11) default '0',
  bakvar char(50) default NULL,
  note char(50) default NULL,
  indate datetime default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_favorites;
CREATE TABLE mydb_ftbbs_favorites (
  id int(11) NOT NULL AUTO_INCREMENT,
  clubuser_name char(15) default NULL,
  bbstitleid int(11) default '0',
  typesign int(11) default '0',
  indate datetime default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_online;
CREATE TABLE mydb_ftbbs_online (
  ID int(11) NOT NULL AUTO_INCREMENT,
  sessid char(100) default NULL,
  username char(50) default NULL,
  useradmin smallint(6) default NULL,
  stats char(255) default NULL,
  ip char(15) default NULL,
  logintime datetime default NULL,
  lasttime datetime default NULL,
  PRIMARY KEY  (ID),
  KEY ID (ID)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_poll_ip;
CREATE TABLE mydb_ftbbs_poll_ip (
  id int(11) NOT NULL AUTO_INCREMENT,
  bbstitleid int(11) default '0',
  poll_user char(15) default NULL,
  poll_user_ip char(18) default NULL,
  poll_date datetime default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_upload;
CREATE TABLE mydb_ftbbs_upload (
  id int(11) NOT NULL AUTO_INCREMENT,
  upload_pic char(80) default NULL,
  indate datetime default NULL,
  file_type int(11) default '0',
  upload_size int(11) default '0',
  upload_ext char(10) default NULL,
  userid char(30) default NULL,
  upload_htm char(80) default NULL,
  sign int(11) default '0',
  pic_note char(200) default NULL,
  photo_name char(20) default NULL,
  photo_bg_blog int(11) default '0',
  photo_pl_num int(11) default '0',
  bbs_blog_type int(11) default '0',
  clubuser_id int(11) default '0',
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbsmb;
CREATE TABLE mydb_ftbbsmb (
  id int(11) NOT NULL AUTO_INCREMENT,
  postmb longtext,
  repostmb longtext,
  repostformmb longtext,
  postpollmb longtext,
  postpgnum int(11) default '30',
  repostpgnum int(11) default '15',
  folder char(15) default NULL,
  ftbbsmode tinyint(1) default '0',
  treemb longtext,
  bbs_domain char(30) default NULL,
  bbs_name char(30) default NULL,
  upload_type char(80) default NULL,
  upload_size int(11) default '0',
  ft_ver char(50) default NULL,
  gifjpg tinyint(1) default '0',
  uploadoff tinyint(1) default '0',
  regoff tinyint(1) default '0',
  posttime int(11) default '0',
  reposttime int(11) default '0',
  regsmstitle char(50) default NULL,
  regsmscontent longtext,
  usernamelng char(20) default NULL,
  pswlng char(20) default NULL,
  jmailoff tinyint(1) default '0',
  mailuser char(20) default NULL,
  mailpwd char(20) default NULL,
  mailaddress char(50) default NULL,
  mailsmtp char(30) default NULL,
  defaultcss tinyint(1) default '1',
  getcodeoff tinyint(1) default '1',
  bakoff tinyint(1) default '0',
  htm_ext char(15) default NULL,
  onlineoff tinyint(1) default '0',
  linkoff tinyint(1) default '0',
  bakmb longtext,
  waterimg tinyint(1) default '0',
  htmlsign tinyint(1) default '0',
  shoff tinyint(1) default '0',
  byoff tinyint(1) default '0',
  onlinetime int(11) default '10',
  adminfile char(30) default NULL,
  postbegintime char(15) default NULL,
  postendtime char(15) default NULL,
  repostbegintime char(15) default NULL,
  repostendtime char(15) default NULL,
  swapmoney int(11) default '1',
  integral int(11) default '100',
  postget int(11) default '10',
  repostget int(11) default '5',
  topostget int(11) default '2',
  tjget int(11) default '10',
  jhget int(11) default '10',
  logintili int(11) default '1',
  postvalue int(11) default '0',
  pollvalue int(11) default '0',
  topvalue int(11) default '0',
  tjvalue int(11) default '0',
  jhvalue int(11) default '0',
  downvalue int(11) default '0',
  uploadvalue int(11) default '0',
  sitenav Text default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


INSERT INTO mydb_ftbbsmb VALUES (1,NULL,NULL,NULL,NULL,30,10,'M',0,'<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<title>论坛导航</title>\r\n<script language=javascript src=\"inc/cookies.js\"></script>\r\n<script>\r\nvar stylecook = getCookie(\"STYLESHOW\");\r\nvar style;\r\nvar strstyle;\r\nif(stylecook==\"\")\r\n{\r\n stylecook=1;//默认皮肤\r\n}\r\nelse\r\n{\r\n stylecook++;\r\n}\r\nstyle=\"style0\"+stylecook+\".css\";\r\nstrstyle=\"<link href=\\\"css/\"+style+\"\\\"  rel=\\\"stylesheet\\\" type=\\\"text/css\\\"> \";\r\ndocument.write(strstyle);\r\n</script>\r\n\r\n<script language=\"JavaScript\">\r\nNS4 = (document.layers) ? 1 : 0;\r\nIE4 = (document.all) ? 1 : 0;\r\nver4 = (NS4 || IE4) ? 1 : 0;\r\n\r\nif (ver4) {\r\nwith (document) {\r\nwrite(\"<STYLE TYPE=\'text/css\'>\");\r\nif (NS4) {\r\nwrite(\".parent {position:absolute; visibility:visible}\");\r\nwrite(\".child {position:absolute; visibility:visible}\");\r\nwrite(\".regular {position:absolute; visibility:visible}\")\r\n}else {\r\nwrite(\".child {display:none}\")\r\n}\r\nwrite(\"</STYLE>\");\r\n}}\r\n\r\nfunction getIndex(el) {\r\nind = null;\r\nfor (I=0; I<document.layers.length; I++) {\r\nwhichEl = document.layers[I];\r\nif (whichEl.id == el) {\r\nind = I;\r\nbreak;\r\n}}\r\nreturn ind;\r\n}\r\n\r\nfunction arrange() {\r\nnextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;\r\nfor (I=firstInd+1; I<document.layers.length; I++) {\r\nwhichEl = document.layers[I];\r\nif (whichEl.visibility != \"hide\") {\r\nwhichEl.pageY = nextY;\r\nnextY += whichEl.document.height;\r\n}}}\r\n\r\nfunction initIt()\r\n{\r\n\tif (!ver4) return;\r\n\tif (NS4)\r\n\t{\r\n\t\tfor (I=0; I<document.layers.length; I++)\r\n\t\t{\r\n\t\t\twhichEl = document.layers[I];\r\n\t\t\tif (whichEl.id.indexOf(\"Child\") != -1) whichEl.visibility = \"hide\";\r\n\t\t}\r\n\t\tarrange();\r\n\t}\r\n\telse\r\n\t{\r\n\t\tdivColl = document.all.tags(\"DIV\");\r\n\t\tfor (I=0; I<divColl.length; I++)\r\n\t\t{\r\n\t\t\twhichEl = divColl(I);\r\n\t\t\tif (whichEl.className == \"child\") whichEl.style.display = \"none\";\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction expandIt(el)\r\n{\r\n\tif (!ver4) return;\r\n\tif (IE4)\r\n\t{\r\n\t\twhichEl = eval(el + \"Child\");\r\n\t\tif (whichEl.style.display == \"none\")\r\n\t\t{\r\n\t\t\twhichEl.style.display = \"block\";\r\n\t\t\tdocument.all(\"dir\"+el.replace(\"KB\",\"\")).src=\"images/opentm.gif\";\r\n\t\t\tdocument.all(\"fold\"+el.replace(\"KB\",\"\")).src=\"images/openx.gif\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twhichEl.style.display = \"none\";\r\n\t\t\tdocument.all(\"dir\"+el.replace(\"KB\",\"\")).src=\"images/closetm.gif\";\r\n\t\t\tdocument.all(\"fold\"+el.replace(\"KB\",\"\")).src=\"images/close.gif\";\r\n\t\t}\r\n\t}\r\n\telse\r\n\t{\r\n\t\twhichEl = eval(\"document.\" + el + \"Child\");\r\n\t\tif (whichEl.visibility == \"hide\")\r\n\t\t{\r\n\t\t\twhichEl.visibility = \"show\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twhichEl.visibility = \"hide\";\r\n\t\t}\r\n\t\tarrange();\r\n\t}\r\n}\r\nonload = initIt;\r\n</script>\r\n</head>\r\n<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n<center>\r\n  <table width=\"122\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n    <tr> \r\n      <td height=\"3\" class=\"treetdbg\"> \r\n        <spacer height=\"3\" type=\"block\"></td>\r\n    </tr>\r\n    <tr>\r\n      <td height=\"50\"><div align=\"center\"><img src=\"images/tmlogo.gif\" width=\"112\" height=\"50\"></div></td>\r\n    </tr>\r\n    <tr> \r\n      <td height=\"3\" class=\"treetdbg\"> \r\n        <spacer height=\"3\" type=\"block\"></td>\r\n    </tr>\r\n    <tr> \r\n      <td height=6><spacer height=\"6\" type=\"block\"></td>\r\n    </tr>\r\n  </table>\r\n  <table width=\"120\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"text\">\r\n      <tr>\r\n                <td><table width=\"120\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"text\">\r\n            <tr align=\"left\" valign=\"middle\">       \r\n              \r\n            <td width=\"15\"><img src=\"images/opennotopline.gif\" width=\"18\" height=\"18\"></td>   \r\n            <td width=\"25\"><img src=\"images/home.gif\" width=\"18\" height=\"18\"></td>      \r\n            <td>  <a class=head3 href=default.php target=\"_blank\">论坛首页</a></td>\r\n                    </tr>\r\n                  </table></td>\r\n              </tr>\r\n  </table>\r\n  #ftbbstree#\r\n<table width=\"120\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"text\">\r\n    <tr> \r\n      <td><table width=\"121\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"text\">\r\n          <tr align=\"left\" valign=\"middle\"> \r\n            <td width=\"18\"><div align=\"right\"><img src=\"images/nodeend.gif\" width=\"17\" height=\"18\"></div></td>\r\n            <td width=\"27\"> <div align=\"left\"><img src=\"images/openx.gif\" width=\"18\" height=\"15\"></div></td>\r\n            <td width=\"85\">  <a class=head3 href=help.php target=main>论坛指南</a></td>\r\n          </tr>\r\n        </table></td>\r\n    </tr>\r\n  </table>\r\n  <table width=\"120\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n    <tr> \r\n      <td height=10><spacer height=\"10\" type=\"block\"></td>\r\n    </tr>\r\n</table>\r\n</center>\r\n<script language=\"JavaScript\">\r\nif (NS4) {\r\nfirstEl = \"KB-2Parent\";\r\nfirstInd = getIndex(firstEl);\r\narrange();\r\n}\r\n</script>\r\n</body>\r\n</html>','http://www.ftbbs.cn/','飞天论坛','gif|jpg|rar','204800','FTBBS_PHP_UTF8 V5.6',0,0,0,0,0,'恭喜你，注册成功！','欢迎您加入本站点参加交流和讨论，本站点为公共论坛，为维护网上公共秩序和社会稳定，请您自觉遵守我们的条款.','3-10','3-10',0,'','','','',0,0,1,'.htm',0,0,NULL,0,0,0,0,10,'../admin.php','0','0','0','0',1,100,10,5,2,10,10,1,0,0,0,0,0,0,0,NULL);


DROP TABLE IF EXISTS mydb_ftblog;
CREATE TABLE mydb_ftblog (
  id int(11) NOT NULL AUTO_INCREMENT,
  blogtitle char(50) default NULL,
  blogtypeid int(11) default NULL,
  blogcontent longtext,
  blogqs tinyint(3) unsigned default '0',
  writedate datetime default NULL,
  xinqin char(20) default NULL,
  blogplnum int(11) default '0',
  flower int(11) default '0',
  jidan int(11) default '0',
  hits int(11) default '0',
  userid int(11) default NULL,
  userip char(30) default NULL,
  blogtop tinyint(3) unsigned default '0',
  blogtj tinyint(3) unsigned default '0',
  bloghtmfile char(80) default NULL,
  blognum int(11) default '0',
  blogtag char(200) default NULL,
  plqs tinyint(3) unsigned default '0',
  sign tinyint(3) unsigned default '0',
  cssfile char(50) default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftblog_pl;
CREATE TABLE mydb_ftblog_pl (
  id int(11) NOT NULL AUTO_INCREMENT,
  netname char(30) default NULL,
  pltitle char(50) default NULL,
  plcontent longtext,
  blogid int(11) default NULL,
  userid int(11) default NULL,
  sign tinyint(3) unsigned default '0',
  userip char(30) default NULL,
  pldate datetime default NULL,
  plqs tinyint(3) unsigned default '0',
  pltype tinyint(3) unsigned default '0',
  plnum int(11) default '0',
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_haoyou;
CREATE TABLE mydb_haoyou (
  id int(11) NOT NULL AUTO_INCREMENT,
  userid int(11) default NULL,
  haoyouname char(10) default NULL,
  groupname char(20) default NULL,
  sign tinyint(3) unsigned default '0',
  addtime datetime default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_links;
CREATE TABLE mydb_links (
  id int(11) NOT NULL AUTO_INCREMENT,
  ftbbs_class char(2) default NULL,
  ftbbs_name char(50) default NULL,
  ftbbs_url char(100) default NULL,
  ftbbs_logo char(100) default NULL,
  ftbbs_qq char(50) default NULL,
  ftbbs_mail char(50) default NULL,
  ftbbs_zhu longtext,
  ftbbs_time datetime default NULL,
  ftbbs_pass char(1) default 'N',
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_sms;
CREATE TABLE mydb_sms (
  id int(11) NOT NULL AUTO_INCREMENT,
  title char(150) default NULL,
  content longtext,
  sender char(20) default NULL,
  accepter char(20) default NULL,
  indate datetime default NULL,
  replysign tinyint(3) unsigned default '0',
  display tinyint(3) unsigned default '0',
  bbssystem tinyint(3) unsigned default '0',
  IsNew int(11) default '0',
  PRIMARY KEY  (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftbbs_touxian;
CREATE TABLE mydb_ftbbs_touxian (
  id int(11) NOT NULL AUTO_INCREMENT,
  xiao int(11) default NULL,
  da int(11) default NULL,
  nick char(20) default NULL,
  classx char(30) default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_xunzhang;
CREATE TABLE mydb_xunzhang (
  id int(11) NOT NULL AUTO_INCREMENT,
  xzms char(50) default NULL,
  xzimg char(20) default NULL,
  flag tinyint(1) unsigned default '0',
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM;


DROP TABLE IF EXISTS mydb_ftblog_type;
CREATE TABLE mydb_ftblog_type (
  id int(11) NOT NULL AUTO_INCREMENT,
  userid int(11) default NULL,
  blogtype char(50) default NULL,
  sign tinyint(3) unsigned default '0',
  indate datetime default NULL,
  qs tinyint(3) unsigned default '0',
  userip char(20) default NULL,
  totalnum int(11) default '0',
  blogphoto tinyint(3) unsigned default '0',
  alumpwd char(50) default NULL,
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM; 
