DROP TABLE IF EXISTS `cctvai_adgg`;

CREATE TABLE `cctvai_adgg` (
  `cd_x5` int(11) NOT NULL AUTO_INCREMENT,
  `gg960_90` text,
  `gg960_60` text,
  `gg728_90` text,
  `gg640_60` text,
  `gg580_90` text,
  `gg468_60` text,
  `gg760_90` text,
  `gg468_15` text,
  `gg500_200` text,
  `gg160_600` text,
  `gg120_600` text,
  `gg120_240` text,
  `gg300_250` text,
  `gg250_250` text,
  `gg200_200` text,
  `gg336_280` text,
  `gg360_300` text,
  `gg125_125` text,
  `gg180_150` text,
  `gg728_15` text,
  `gg234_60` text,
  `gg480_160` text,
  `gg460_60` text,
  `gg120_90` text,
  `gg200_90` text,
  `gg160_90` text,
  `gg180_90` text,
  `ggself_defined` text,
  PRIMARY KEY (`cd_x5`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_admin`;

CREATE TABLE `cctvai_admin` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_AdminUserName` varchar(64) NOT NULL,
  `CD_AdminPassWord` varchar(64) NOT NULL,
  `CD_LoginIP` varchar(128) DEFAULT NULL,
  `CD_LoginNum` int(11) DEFAULT '0',
  `CD_LastLogin` datetime DEFAULT NULL,
  `CD_IsLock` int(11) NOT NULL DEFAULT '0',
  `CD_Permission` varchar(128) NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_bill`;

CREATE TABLE `cctvai_bill` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_type` int(11) NOT NULL,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_icon` varchar(20) NOT NULL,
  `cd_title` text NOT NULL,
  `cd_points` int(11) NOT NULL,
  `cd_state` int(11) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  `cd_endtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_blog`;

CREATE TABLE `cctvai_blog` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uip` varchar(50) DEFAULT NULL,
  `cd_title` varchar(100) DEFAULT NULL,
  `cd_content` text NOT NULL,
  `cd_hits` int(11) NOT NULL,
  `cd_commentnum` int(11) NOT NULL,
  `cd_addtime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_caijidance`;

CREATE TABLE `cctvai_caijidance` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Color` varchar(20) NOT NULL,
  `CD_ClassID` int(11) NOT NULL,
  `CD_User` varchar(50) NOT NULL,
  `CD_Skin` varchar(50) NOT NULL,
  `CD_Server` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_SpecialID` int(11) NOT NULL,
  `CD_From` varchar(50) NOT NULL,
  `CD_Grade` int(11) NOT NULL,
  `CD_Points` int(11) NOT NULL,
  `CD_Get` int(11) NOT NULL,
  `CD_LocalPic` int(11) NOT NULL,
  `CD_LocalFile` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_Logo` varchar(64) NOT NULL,
  `CD_ELogo` varchar(64) NOT NULL,
  `CD_Domain` varchar(255) NOT NULL,
  `CD_Curl` text,
  `CD_Curlkp` int(11) NOT NULL,
  `CD_Curljp` int(11) NOT NULL,
  `CD_Charset` varchar(50) NOT NULL,
  `CD_Listk` text,
  `CD_Listj` text,
  `CD_ListNk` text,
  `CD_ListNj` text,
  `CD_ListNurl` text,
  `CD_ListNsuffix` text,
  `CD_Time` int(11) NOT NULL,
  `CD_Namek` text,
  `CD_Namej` text,
  `CD_NameNum` int(11) NOT NULL,
  `CD_Namereplace` text,
  `CD_Singerk` text,
  `CD_Singerj` text,
  `CD_Singerzdy` text,
  `CD_SingerNum` int(11) NOT NULL,
  `CD_Singerreplace` text,
  `CD_SingerPassed` int(11) NOT NULL,
  `CD_SingerClassID` int(11) NOT NULL,
  `CD_Tagk` text,
  `CD_Tagj` text,
  `CD_Tagzdy` text,
  `CD_TagNum` int(11) NOT NULL,
  `CD_Tagreplace` text,
  `CD_Urlk` text,
  `CD_Urlj` text,
  `CD_Urlzdy` text,
  `CD_UrlNum` int(11) NOT NULL,
  `CD_Urlzj` varchar(64) NOT NULL,
  `CD_Urlreplace` text,
  `CD_DownUrlk` text,
  `CD_DownUrlj` text,
  `CD_DownUrlzdy` text,
  `CD_DownUrlNum` int(11) NOT NULL,
  `CD_DownUrlzj` varchar(64) NOT NULL,
  `CD_DownUreplace` text,
  `CD_Pick` text,
  `CD_Picj` text,
  `CD_Piczdy` text,
  `CD_PicNum` int(11) NOT NULL,
  `CD_Picreplace` text,
  `CD_Wordk` text,
  `CD_Wordj` text,
  `CD_Wordzdy` text,
  `CD_WordNum` int(11) NOT NULL,
  `CD_Wordreplace` text,
  `CD_Lrck` text,
  `CD_Lrcj` text,
  `CD_Lrczdy` text,
  `CD_LrcNum` int(11) NOT NULL,
  `CD_Lrcreplace` text,
  `CD_Sizk` text,
  `CD_Sizj` text,
  `CD_Sizzdy` text,
  `CD_SizNum` int(11) NOT NULL,
  `CD_Sizreplace` text,
  `CD_Playtimek` text,
  `CD_Playtimej` text,
  `CD_Playtimezdy` text,
  `CD_PlaytimeNum` int(11) NOT NULL,
  `CD_Playtimereplace` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_caijinews`;

CREATE TABLE `cctvai_caijinews` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_ClassID` int(11) NOT NULL,
  `CD_Color` varchar(20) NOT NULL,
  `CD_Get` int(11) NOT NULL,
  `CD_LocalPic` int(11) NOT NULL,
  `CD_IsIndex` int(11) NOT NULL,
  `CD_Logo` varchar(64) NOT NULL,
  `CD_ELogo` varchar(64) NOT NULL,
  `CD_Domain` varchar(255) NOT NULL,
  `CD_Curl` text,
  `CD_Curlkp` int(11) NOT NULL,
  `CD_Curljp` int(11) NOT NULL,
  `CD_Charset` varchar(50) NOT NULL,
  `CD_Listk` text,
  `CD_Listj` text,
  `CD_ListNk` text,
  `CD_ListNj` text,
  `CD_ListNurl` text,
  `CD_ListNsuffix` text,
  `CD_Time` int(11) NOT NULL,
  `CD_Namek` text,
  `CD_Namej` text,
  `CD_NameNum` int(11) NOT NULL,
  `CD_Namereplace` text,
  `CD_Piczj` text,
  `CD_Introk` text,
  `CD_Introj` text,
  `CD_IntroNum` int(11) NOT NULL,
  `CD_Introreplace` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_caijisinger`;

CREATE TABLE `cctvai_caijisinger` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_ClassID` int(11) NOT NULL,
  `CD_User` varchar(50) NOT NULL,
  `CD_Get` int(11) NOT NULL,
  `CD_LocalPic` int(11) NOT NULL,
  `CD_LocalFile` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_newsql` int(11) NOT NULL,
  `CD_Logo` varchar(64) NOT NULL,
  `CD_ELogo` varchar(64) NOT NULL,
  `CD_Domain` varchar(255) NOT NULL,
  `CD_Curl` text,
  `CD_Curlkp` int(11) NOT NULL,
  `CD_Curljp` int(11) NOT NULL,
  `CD_Charset` varchar(50) NOT NULL,
  `CD_Listk` text,
  `CD_Listj` text,
  `CD_ListNk` text,
  `CD_ListNj` text,
  `CD_ListNurl` text,
  `CD_ListNsuffix` text,
  `CD_Time` int(11) NOT NULL,
  `CD_Namek` text,
  `CD_Namej` text,
  `CD_NameNum` int(11) NOT NULL,
  `CD_Namereplace` text,
  `CD_Biemingk` text,
  `CD_Biemingj` text,
  `CD_BiemingNum` int(11) NOT NULL,
  `CD_Biemingreplace` text,
  `CD_Sexk` text,
  `CD_Sexj` text,
  `CD_SexNum` int(11) NOT NULL,
  `CD_Sexreplace` text,
  `CD_Guojik` text,
  `CD_Guojij` text,
  `CD_GuojiNum` int(11) NOT NULL,
  `CD_Guojireplace` text,
  `CD_Yuank` text,
  `CD_Yuanj` text,
  `CD_YuanNum` int(11) NOT NULL,
  `CD_Yuanreplace` text,
  `CD_Birthk` text,
  `CD_Birthj` text,
  `CD_BirthNum` int(11) NOT NULL,
  `CD_Birthreplace` text,
  `CD_Birthdayk` text,
  `CD_Birthdayj` text,
  `CD_BirthdayNum` int(11) NOT NULL,
  `CD_Birthdayreplace` text,
  `CD_Signk` text,
  `CD_Signj` text,
  `CD_SignNum` int(11) NOT NULL,
  `CD_Signreplace` text,
  `CD_Heightk` text,
  `CD_Heightj` text,
  `CD_HeightNum` int(11) NOT NULL,
  `CD_Heightreplace` text,
  `CD_Kgk` text,
  `CD_Kgj` text,
  `CD_KgNum` int(11) NOT NULL,
  `CD_Kgreplace` text,
  `CD_Pick` text,
  `CD_Picj` text,
  `CD_Piczj` text,
  `CD_PicNum` int(11) NOT NULL,
  `CD_Picreplace` text,
  `CD_Introk` text,
  `CD_Introj` text,
  `CD_IntroNum` int(11) NOT NULL,
  `CD_Introreplace` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_caijivideo`;

CREATE TABLE `cctvai_caijivideo` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Color` varchar(20) NOT NULL,
  `CD_ClassID` int(11) NOT NULL,
  `CD_User` varchar(50) NOT NULL,
  `CD_Skin` varchar(50) NOT NULL,
  `CD_Server` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_SpecialID` int(11) NOT NULL,
  `CD_From` varchar(50) NOT NULL,
  `CD_Grade` int(11) NOT NULL,
  `CD_Points` int(11) NOT NULL,
  `CD_Get` int(11) NOT NULL,
  `CD_LocalPic` int(11) NOT NULL,
  `CD_LocalFile` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_Logo` varchar(64) NOT NULL,
  `CD_ELogo` varchar(64) NOT NULL,
  `CD_Domain` varchar(255) NOT NULL,
  `CD_Curl` text,
  `CD_Curlkp` int(11) NOT NULL,
  `CD_Curljp` int(11) NOT NULL,
  `CD_Charset` varchar(50) NOT NULL,
  `CD_Listk` text,
  `CD_Listj` text,
  `CD_ListNk` text,
  `CD_ListNj` text,
  `CD_ListNurl` text,
  `CD_ListNsuffix` text,
  `CD_Time` int(11) NOT NULL,
  `CD_Namek` text,
  `CD_Namej` text,
  `CD_NameNum` int(11) NOT NULL,
  `CD_Namereplace` text,
  `CD_Singerk` text,
  `CD_Singerj` text,
  `CD_Singerzdy` text,
  `CD_SingerNum` int(11) NOT NULL,
  `CD_Singerreplace` text,
  `CD_SingerPassed` int(11) NOT NULL,
  `CD_SingerClassID` int(11) NOT NULL,
  `CD_Tagk` text,
  `CD_Tagj` text,
  `CD_Tagzdy` text,
  `CD_TagNum` int(11) NOT NULL,
  `CD_Tagreplace` text,
  `CD_Urlk` text,
  `CD_Urlj` text,
  `CD_Urlzdy` text,
  `CD_UrlNum` int(11) NOT NULL,
  `CD_Urlzj` varchar(64) NOT NULL,
  `CD_Urlreplace` text,
  `CD_DownUrlk` text,
  `CD_DownUrlj` text,
  `CD_DownUrlzdy` text,
  `CD_DownUrlNum` int(11) NOT NULL,
  `CD_DownUrlzj` varchar(64) NOT NULL,
  `CD_DownUreplace` text,
  `CD_Pick` text,
  `CD_Picj` text,
  `CD_Piczdy` text,
  `CD_PicNum` int(11) NOT NULL,
  `CD_Picreplace` text,
  `CD_Wordk` text,
  `CD_Wordj` text,
  `CD_Wordzdy` text,
  `CD_WordNum` int(11) NOT NULL,
  `CD_Wordreplace` text,
  `CD_Lrck` text,
  `CD_Lrcj` text,
  `CD_Lrczdy` text,
  `CD_LrcNum` int(11) NOT NULL,
  `CD_Lrcreplace` text,
  `CD_Sizk` text,
  `CD_Sizj` text,
  `CD_Sizzdy` text,
  `CD_SizNum` int(11) NOT NULL,
  `CD_Sizreplace` text,
  `CD_Playtimek` text,
  `CD_Playtimej` text,
  `CD_Playtimezdy` text,
  `CD_PlaytimeNum` int(11) NOT NULL,
  `CD_Playtimereplace` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_class`;

CREATE TABLE `cctvai_class` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_comment`;

CREATE TABLE `cctvai_comment` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_channel` int(11) NOT NULL,
  `cd_dataid` int(11) NOT NULL,
  `cd_content` text NOT NULL,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uip` varchar(255) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_dj`;

CREATE TABLE `cctvai_dj` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `CD_Name` varchar(255) NOT NULL,
  `CD_ClassID` int(11) NOT NULL,
  `CD_SpecialID` int(11) NOT NULL,
  `CD_Singer` int(11) NOT NULL,
  `CD_User` varchar(50) NOT NULL,
  `CD_Tag` varchar(50) NOT NULL,
  `CD_Pic` text,
  `CD_Url` text,
  `CD_DownUrl` text,
  `CD_Word` text,
  `CD_Lrc` text,
  `CD_From` varchar(50) DEFAULT NULL,
  `CD_Siz` varchar(50) DEFAULT NULL,
  `CD_Uid` varchar(50) DEFAULT NULL,
  `CD_Md5` varchar(50) DEFAULT NULL,
  `CD_Playtime` varchar(50) DEFAULT NULL,
  `CD_Bitkbps` varchar(50) DEFAULT NULL,
  `CD_Hits` int(11) NOT NULL,
  `CD_DownHits` int(11) NOT NULL,
  `CD_FavHits` int(11) NOT NULL,
  `CD_uHits` int(11) NOT NULL,
  `CD_dHits` int(11) NOT NULL,
  `CD_DayHits` int(11) NOT NULL,
  `CD_WeekHits` int(11) NOT NULL,
  `CD_MonthHits` int(11) NOT NULL,
  `CD_LastHitTime` datetime DEFAULT NULL,
  `CD_AddTime` datetime DEFAULT NULL,
  `CD_Server` int(11) NOT NULL,
  `CD_Deleted` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_Error` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_Points` int(11) NOT NULL,
  `CD_Grade` int(11) NOT NULL,
  `CD_Color` varchar(20) NOT NULL,
  `CD_Skin` varchar(50) NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_djtop`;

CREATE TABLE `cctvai_djtop` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Type` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_down`;

CREATE TABLE `cctvai_down` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_musicid` int(11) NOT NULL,
  `cd_musicname` varchar(255) NOT NULL,
  `cd_classid` int(11) NOT NULL,
  `cd_type` varchar(20) NOT NULL,
  `cd_addtime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_experience`;

CREATE TABLE `cctvai_experience` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_level` varchar(30) DEFAULT NULL,
  `cd_name` varchar(30) DEFAULT NULL,
  `cd_experience` int(11) NOT NULL,
  `cd_experienceup` int(11) NOT NULL,
  `cd_pic` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_fans`;

CREATE TABLE `cctvai_fans` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uids` int(11) NOT NULL,
  `cd_unames` varchar(50) NOT NULL,
  `cd_lock` int(11) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_fav`;

CREATE TABLE `cctvai_fav` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_musicid` int(11) NOT NULL,
  `cd_musicname` varchar(255) NOT NULL,
  `cd_classid` int(11) NOT NULL,
  `cd_type` varchar(20) NOT NULL,
  `cd_addtime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_feed`;

CREATE TABLE `cctvai_feed` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) DEFAULT NULL,
  `cd_icon` varchar(20) NOT NULL,
  `cd_title` text NOT NULL,
  `cd_data` text NOT NULL,
  `cd_image` varchar(255) DEFAULT NULL,
  `cd_imagelink` varchar(255) DEFAULT NULL,
  `cd_dataid` int(11) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_friend`;

CREATE TABLE `cctvai_friend` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uids` int(11) NOT NULL,
  `cd_unames` varchar(50) NOT NULL,
  `cd_lock` int(11) NOT NULL,
  `cd_note` varchar(100) DEFAULT NULL,
  `cd_group` int(11) NOT NULL,
  `cd_hidden` int(11) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_friendgroup`;

CREATE TABLE `cctvai_friendgroup` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_name` varchar(50) NOT NULL,
  `cd_count` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_link`;

CREATE TABLE `cctvai_link` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_name` varchar(50) NOT NULL,
  `cd_url` varchar(100) NOT NULL,
  `cd_pic` varchar(150) NOT NULL,
  `cd_classid` int(11) NOT NULL,
  `cd_input` varchar(255) NOT NULL,
  `cd_isverify` int(11) NOT NULL,
  `cd_isindex` int(11) NOT NULL,
  `cd_theorder` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_malbum`;

CREATE TABLE `cctvai_malbum` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_ClassID` int(11) NOT NULL,
  `CD_Name` varchar(255) DEFAULT NULL,
  `CD_User` varchar(50) DEFAULT NULL,
  `CD_Pic` varchar(255) DEFAULT NULL,
  `CD_Singer` int(11) NOT NULL,
  `CD_GongSi` varchar(50) DEFAULT NULL,
  `CD_YuYan` varchar(50) DEFAULT NULL,
  `CD_Song` text,
  `CD_Intro` text,
  `CD_Hits` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_AddTime` datetime NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_malbumclass`;

CREATE TABLE `cctvai_malbumclass` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_message`;

CREATE TABLE `cctvai_message` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uids` int(11) NOT NULL,
  `cd_unames` varchar(50) NOT NULL,
  `cd_dataid` int(11) NOT NULL,
  `cd_readid` int(11) NOT NULL,
  `cd_content` text NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_mold`;

CREATE TABLE `cctvai_mold` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_TempPath` text NOT NULL,
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_news`;

CREATE TABLE `cctvai_news` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_ClassID` int(11) NOT NULL,
  `CD_Name` varchar(255) NOT NULL,
  `CD_Intro` text,
  `CD_Hits` int(11) NOT NULL,
  `CD_IsIndex` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_Color` varchar(20) NOT NULL,
  `CD_AddTime` datetime NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_newsclass`;

CREATE TABLE `cctvai_newsclass` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_notice`;

CREATE TABLE `cctvai_notice` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uids` int(11) NOT NULL,
  `cd_unames` varchar(50) NOT NULL,
  `cd_icon` varchar(20) NOT NULL,
  `cd_data` text NOT NULL,
  `cd_dataid` int(11) NOT NULL,
  `cd_state` int(11) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_pay`;

CREATE TABLE `cctvai_pay` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_key` varchar(255) NOT NULL,
  `cd_name` varchar(255) NOT NULL,
  `cd_rmb` varchar(11) NOT NULL,
  `cd_mub` varchar(11) NOT NULL,
  `cd_type` varchar(11) NOT NULL,
  `cd_state` varchar(11) NOT NULL,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  `cd_extime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_pic`;

CREATE TABLE `cctvai_pic` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uip` varchar(50) DEFAULT NULL,
  `cd_title` varchar(100) DEFAULT NULL,
  `cd_url` varchar(200) NOT NULL,
  `cd_hits` int(11) NOT NULL,
  `cd_praisenum` int(11) NOT NULL,
  `cd_replynum` int(11) NOT NULL,
  `cd_theorder` int(11) NOT NULL,
  `cd_weborder` int(11) NOT NULL,
  `cd_width` int(11) NOT NULL,
  `cd_height` int(11) NOT NULL,
  `cd_addtime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_server`;

CREATE TABLE `cctvai_server` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(100) NOT NULL,
  `CD_Url` varchar(255) NOT NULL,
  `CD_DownUrl` varchar(255) DEFAULT NULL,
  `CD_Yes` int(11) NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_session`;

CREATE TABLE `cctvai_session` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uip` varchar(50) NOT NULL,
  `cd_logintime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_singer`;

CREATE TABLE `cctvai_singer` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_ClassID` int(11) NOT NULL,
  `CD_Name` varchar(255) DEFAULT NULL,
  `CD_Sex` varchar(10) DEFAULT NULL,
  `CD_Bieming` varchar(50) DEFAULT NULL,
  `CD_Guoji` varchar(50) DEFAULT NULL,
  `CD_Yuan` varchar(50) DEFAULT NULL,
  `CD_Birth` varchar(50) DEFAULT NULL,
  `CD_Birthday` varchar(50) DEFAULT NULL,
  `CD_Sign` varchar(50) DEFAULT NULL,
  `CD_Height` varchar(50) DEFAULT NULL,
  `CD_Kg` varchar(20) DEFAULT NULL,
  `CD_User` varchar(50) NOT NULL,
  `CD_Pic` text,
  `CD_Intro` text,
  `CD_Hits` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_AddTime` datetime NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_singerabc`;

CREATE TABLE `cctvai_singerabc` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(5) NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_singerclass`;

CREATE TABLE `cctvai_singerclass` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_skin`;

CREATE TABLE `cctvai_skin` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_classid` int(11) NOT NULL,
  `cd_name` varchar(50) NOT NULL,
  `cd_path` varchar(50) NOT NULL,
  `cd_points` int(11) NOT NULL,
  `cd_hits` int(11) NOT NULL,
  `cd_addtime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_skin_class`;

CREATE TABLE `cctvai_skin_class` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_name` varchar(20) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_slot`;

CREATE TABLE `cctvai_slot` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_points` int(11) NOT NULL,
  `cd_number` int(11) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_system`;

CREATE TABLE `cctvai_system` (
  `cd_djmub` int(11) NOT NULL AUTO_INCREMENT,
  `cd_djdaymub` int(11) DEFAULT NULL,
  `cd_djdaytime` varchar(30) DEFAULT NULL,
  `cd_videomub` int(11) DEFAULT NULL,
  `cd_videodaymub` int(11) DEFAULT NULL,
  `cd_videodaytime` varchar(30) DEFAULT NULL,
  `cd_usermub` int(11) DEFAULT NULL,
  `cd_userdaymub` int(11) DEFAULT NULL,
  `cd_userdaytime` varchar(30) DEFAULT NULL,
  `cd_daynewtime` int(11) DEFAULT NULL,
  `cd_weeknewtime` int(11) DEFAULT NULL,
  `cd_monthnewtime` int(11) DEFAULT NULL,
  `cd_cnzz` text,
  `cd_message` text,
  PRIMARY KEY (`cd_djmub`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_upload`;

CREATE TABLE `cctvai_upload` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_userid` int(11) NOT NULL,
  `cd_username` varchar(50) NOT NULL,
  `cd_userip` varchar(50) NOT NULL,
  `cd_filetype` varchar(10) NOT NULL,
  `cd_filename` varchar(200) NOT NULL,
  `cd_filesize` int(11) NOT NULL,
  `cd_fileurl` varchar(200) NOT NULL,
  `cd_filetime` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_user`;

CREATE TABLE `cctvai_user` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_name` varchar(50) DEFAULT NULL,
  `cd_nicheng` varchar(30) DEFAULT NULL,
  `cd_password` varchar(50) DEFAULT NULL,
  `cd_question` varchar(50) NOT NULL,
  `cd_answer` varchar(50) NOT NULL,
  `cd_email` varchar(100) NOT NULL,
  `cd_sex` varchar(10) NOT NULL,
  `cd_regdate` datetime DEFAULT NULL,
  `cd_loginip` varchar(30) NOT NULL,
  `cd_loginnum` int(11) NOT NULL,
  `cd_qq` varchar(15) NOT NULL,
  `cd_logintime` datetime DEFAULT NULL,
  `cd_grade` int(11) NOT NULL,
  `cd_lock` int(11) NOT NULL,
  `cd_points` int(11) NOT NULL,
  `cd_photo` varchar(100) NOT NULL,
  `cd_sign` text,
  `cd_hidden` int(11) NOT NULL,
  `cd_birthprovince` varchar(50) NOT NULL,
  `cd_birthcity` varchar(50) NOT NULL,
  `cd_resideprovince` varchar(50) NOT NULL,
  `cd_residecity` varchar(50) NOT NULL,
  `cd_birthday` varchar(50) NOT NULL,
  `cd_vipindate` datetime DEFAULT NULL,
  `cd_vipenddate` datetime DEFAULT NULL,
  `cd_vipgrade` int(11) NOT NULL,
  `cd_viprank` int(11) NOT NULL,
  `cd_verified` varchar(100) NOT NULL,
  `cd_djmub` int(11) NOT NULL,
  `cd_ufav` int(11) NOT NULL,
  `cd_ufans` int(11) NOT NULL,
  `cd_hits` int(11) NOT NULL,
  `cd_isbest` int(11) NOT NULL,
  `cd_money` int(11) NOT NULL,
  `cd_weblock` int(11) NOT NULL,
  `cd_signd` int(11) NOT NULL,
  `cd_signdcumu` int(11) NOT NULL,
  `cd_signdtime` datetime NOT NULL,
  `cd_skin` varchar(50) NOT NULL,
  `cd_friendnum` int(11) NOT NULL,
  `cd_creditname` text,
  `cd_rank` int(11) NOT NULL,
  `cd_credit` int(11) NOT NULL,
  `cd_qqopenid` varchar(64) NOT NULL,
  `cd_checkmm` int(11) NOT NULL,
  `cd_checkmusic` int(11) NOT NULL,
  `cd_groupnum` int(11) NOT NULL,
  `cd_level` int(11) NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_valbum`;

CREATE TABLE `cctvai_valbum` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_ClassID` int(11) NOT NULL,
  `CD_Name` varchar(255) DEFAULT NULL,
  `CD_User` varchar(50) DEFAULT NULL,
  `CD_Pic` varchar(255) DEFAULT NULL,
  `CD_Singer` int(11) NOT NULL,
  `CD_GongSi` varchar(50) DEFAULT NULL,
  `CD_YuYan` varchar(50) DEFAULT NULL,
  `CD_Song` text,
  `CD_Intro` text,
  `CD_Hits` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_AddTime` datetime NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_valbumclass`;

CREATE TABLE `cctvai_valbumclass` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_video`;

CREATE TABLE `cctvai_video` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `CD_Name` varchar(255) NOT NULL,
  `CD_ClassID` int(11) NOT NULL,
  `CD_SpecialID` int(11) NOT NULL,
  `CD_Singer` int(11) NOT NULL,
  `CD_User` varchar(50) NOT NULL,
  `CD_Tag` varchar(50) NOT NULL,
  `CD_Pic` text,
  `CD_Url` text,
  `CD_DownUrl` text,
  `CD_Word` text,
  `CD_Lrc` text,
  `CD_From` varchar(50) DEFAULT NULL,
  `CD_Siz` varchar(50) DEFAULT NULL,
  `CD_Uid` varchar(50) DEFAULT NULL,
  `CD_Md5` varchar(50) DEFAULT NULL,
  `CD_Playtime` varchar(50) DEFAULT NULL,
  `CD_Bitkbps` varchar(50) DEFAULT NULL,
  `CD_Hits` int(11) NOT NULL,
  `CD_DownHits` int(11) NOT NULL,
  `CD_FavHits` int(11) NOT NULL,
  `CD_uHits` int(11) NOT NULL,
  `CD_dHits` int(11) NOT NULL,
  `CD_DayHits` int(11) NOT NULL,
  `CD_WeekHits` int(11) NOT NULL,
  `CD_MonthHits` int(11) NOT NULL,
  `CD_LastHitTime` datetime DEFAULT NULL,
  `CD_AddTime` datetime DEFAULT NULL,
  `CD_Server` int(11) NOT NULL,
  `CD_Deleted` int(11) NOT NULL,
  `CD_IsBest` int(11) NOT NULL,
  `CD_Error` int(11) NOT NULL,
  `CD_Passed` int(11) NOT NULL,
  `CD_Points` int(11) NOT NULL,
  `CD_Grade` int(11) NOT NULL,
  `CD_Color` varchar(20) NOT NULL,
  `CD_Skin` varchar(50) NOT NULL,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_videoclass`;

CREATE TABLE `cctvai_videoclass` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_videotop`;

CREATE TABLE `cctvai_videotop` (
  `CD_ID` int(11) NOT NULL AUTO_INCREMENT,
  `CD_Name` varchar(255) NOT NULL,
  `CD_AliasName` varchar(64) NOT NULL,
  `CD_Type` varchar(64) NOT NULL,
  `CD_Template` varchar(64) NOT NULL,
  `CD_FatherID` int(11) NOT NULL DEFAULT '0',
  `CD_TieID` varchar(255) DEFAULT NULL,
  `CD_SystemID` int(11) NOT NULL DEFAULT '1',
  `CD_TheOrder` int(11) NOT NULL DEFAULT '0',
  `CD_IsHide` int(11) NOT NULL DEFAULT '0',
  `CD_title` text,
  `CD_keywords` text,
  `CD_description` text,
  PRIMARY KEY (`CD_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `cctvai_wall`;

CREATE TABLE `cctvai_wall` (
  `cd_id` int(11) NOT NULL AUTO_INCREMENT,
  `cd_wallid` int(11) NOT NULL,
  `cd_dataid` int(11) NOT NULL,
  `cd_content` text NOT NULL,
  `cd_uid` int(11) NOT NULL,
  `cd_uname` varchar(50) NOT NULL,
  `cd_uip` varchar(255) NOT NULL,
  `cd_addtime` datetime NOT NULL,
  PRIMARY KEY (`cd_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

