SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;


CREATE TABLE IF NOT EXISTS `ttae_ad` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `type` tinyint(1) unsigned NOT NULL,
  `hide` tinyint(1) unsigned NOT NULL,
  `content` text NOT NULL,
  `html` text NOT NULL,
  `picurl` varchar(200) NOT NULL,
  `url` varchar(200) NOT NULL,
  `width` int(10) NOT NULL,
  `height` int(10) NOT NULL,
  `target` tinyint(1) unsigned NOT NULL,
  `start_time` int(10) unsigned NOT NULL,
  `end_time` int(10) unsigned NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;

CREATE TABLE IF NOT EXISTS `ttae_apply` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fid` int(10) NOT NULL DEFAULT '0',
  `uid` int(11) NOT NULL,
  `cate` int(10) unsigned NOT NULL,
  `num_iid` varchar(15) NOT NULL,
  `title` varchar(250) NOT NULL,
  `nick` varchar(100) NOT NULL,
  `picurl` varchar(250) NOT NULL,
  `images` text NOT NULL,
  `url` varchar(100) NOT NULL,
  `price` decimal(12,1) unsigned NOT NULL,
  `start_time` int(10) unsigned NOT NULL,
  `end_time` int(10) unsigned NOT NULL,
  `yh_price` decimal(12,1) unsigned NOT NULL,
  `bili` int(10) NOT NULL,
  `shop_type` tinyint(1) unsigned NOT NULL,
  `ly` varchar(250) NOT NULL,
  `sum` int(11) NOT NULL,
  `name` varchar(20) NOT NULL,
  `qq` varchar(12) NOT NULL,
  `phone` varchar(13) NOT NULL,
  `check` tinyint(4) NOT NULL,
  `check_msg` varchar(250) NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`,`fid`,`cate`),
  KEY `cate` (`cate`),
  KEY `num_iid` (`num_iid`),
  KEY `price` (`price`),
  KEY `fid` (`fid`,`id`),
  KEY `start_time` (`start_time`,`end_time`,`yh_price`),
  KEY `aid` (`id`),
  KEY `yh_price` (`yh_price`),
  KEY `check` (`check`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

CREATE TABLE IF NOT EXISTS `ttae_article` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cate` int(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(250) NOT NULL,
  `picurl` varchar(200) NOT NULL,
  `tpl` varchar(30) NOT NULL,
  `hide` tinyint(1) unsigned NOT NULL,
  `sort` int(10) unsigned NOT NULL,
  `message` text NOT NULL,
  `url` varchar(250) NOT NULL,
  `keywords` varchar(250) NOT NULL,
  `description` varchar(250) NOT NULL,
  `views` int(11) NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;

CREATE TABLE IF NOT EXISTS `ttae_black` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `seller_uid` int(11) NOT NULL,
  `seller_username` varchar(20) NOT NULL,
  `uid` int(11) NOT NULL,
  `username` varchar(20) NOT NULL,
  `desc` varchar(150) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `seller_uid` (`seller_uid`,`uid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

CREATE TABLE IF NOT EXISTS `ttae_brand` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `picurl` varchar(255) NOT NULL,
  `cate` int(11) NOT NULL,
  `content` text NOT NULL,
  `tui` tinyint(1) NOT NULL,
  `sort` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `cate` (`cate`,`sort`),
  KEY `tui` (`tui`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

CREATE TABLE IF NOT EXISTS `ttae_cache` (
  `cname` varchar(32) NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  `data` longtext NOT NULL,
  UNIQUE KEY `cname` (`cname`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `ttae_cate` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(20) NOT NULL,
  `fup` int(11) unsigned NOT NULL DEFAULT '0',
  `name` varchar(50) NOT NULL,
  `title` varchar(200) NOT NULL,
  `keywords` varchar(250) NOT NULL,
  `description` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `picurl` varchar(100) NOT NULL,
  `pic_url` varchar(200) NOT NULL,
  `url` varchar(200) NOT NULL,
  `tpl` varchar(20) NOT NULL,
  `page` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `sort` int(10) unsigned NOT NULL DEFAULT '0',
  `hide` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fup` (`fup`),
  KEY `sort` (`sort`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;

CREATE TABLE IF NOT EXISTS `ttae_channel` (
  `fid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fup` int(11) unsigned NOT NULL DEFAULT '0',
  `cid` int(10) unsigned NOT NULL,
  `name` varchar(50) NOT NULL,
  `classname` varchar(150) NOT NULL,
  `title` varchar(200) NOT NULL,
  `keywords` varchar(250) NOT NULL,
  `description` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `picurl` varchar(250) NOT NULL,
  `url` varchar(200) NOT NULL,
  `channel_tpl` varchar(255) NOT NULL,
  `goods_tpl` varchar(255) NOT NULL,
  `page` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `sort` int(10) unsigned NOT NULL DEFAULT '0',
  `hide` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`fid`),
  KEY `fup` (`fup`),
  KEY `sort` (`sort`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;

CREATE TABLE IF NOT EXISTS `ttae_comment` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `username` varchar(100) NOT NULL,
  `type` varchar(10) NOT NULL,
  `type_id` int(11) NOT NULL,
  `num_iid` varchar(15) NOT NULL,
  `content` varchar(1000) NOT NULL,
  `picurl` varchar(120) NOT NULL,
  `check` tinyint(4) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `is_reply` tinyint(1) NOT NULL,
  `reply_id` int(11) NOT NULL,
  `jf` int(11) NOT NULL,
  `ding` int(11) NOT NULL,
  `cai` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `num_iid` varchar(15) NOT NULL,
  `title` varchar(250) NOT NULL,
  `picurl` varchar(250) NOT NULL,
  `price` decimal(6,1) NOT NULL,
  `url` varchar(360) NOT NULL,
  `bili` int(4) unsigned NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `num_iid` (`num_iid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_duihuan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `num_iid` varchar(15) NOT NULL,
  `cate` tinyint(5) NOT NULL,
  `title` varchar(250) NOT NULL,
  `picurl` varchar(250) NOT NULL,
  `price` int(11) NOT NULL,
  `sum` int(11) NOT NULL,
  `apply_count` int(11) NOT NULL,
  `hide` tinyint(1) NOT NULL,
  `content` text NOT NULL,
  `jf` int(11) NOT NULL,
  `start_time` int(11) NOT NULL,
  `end_time` int(11) NOT NULL,
  `sort` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `num_iid` (`num_iid`,`hide`,`sort`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;

CREATE TABLE IF NOT EXISTS `ttae_duihuan_apply` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `duihuan_id` int(11) NOT NULL,
  `uid` int(11) NOT NULL,
  `username` varchar(100) NOT NULL,
  `wangwang` varchar(20) NOT NULL,
  `truename` varchar(20) NOT NULL,
  `address` varchar(250) NOT NULL,
  `phone` varchar(15) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `statustime` int(11) NOT NULL,
  `content` text NOT NULL,
  `alipay` varchar(30) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`,`status`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

CREATE TABLE IF NOT EXISTS `ttae_favorite` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `username` varchar(30) NOT NULL,
  `title` varchar(100) NOT NULL,
  `type_id` int(11) NOT NULL,
  `type` varchar(15) NOT NULL,
  `picurl` varchar(150) NOT NULL,
  `jf` tinyint(3) NOT NULL,
  `url` varchar(30) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;

CREATE TABLE IF NOT EXISTS `ttae_fetch` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `fid` int(11) NOT NULL,
  `value` text NOT NULL,
  `count` int(11) NOT NULL,
  `sum` int(11) NOT NULL,
  `updatetime` int(11) NOT NULL,
  `sort` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

CREATE TABLE IF NOT EXISTS `ttae_form` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `formid` varchar(50) NOT NULL,
  `uid` int(11) NOT NULL,
  `use` tinyint(1) NOT NULL,
  `use_time` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`,`use`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_friend_link` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `url` varchar(100) NOT NULL,
  `name` varchar(20) NOT NULL,
  `content` text NOT NULL,
  `picurl` varchar(255) NOT NULL,
  `hide` tinyint(1) NOT NULL,
  `sort` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sort` (`sort`),
  KEY `check` (`hide`,`sort`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

CREATE TABLE IF NOT EXISTS `ttae_goods` (
  `aid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fid` int(10) NOT NULL DEFAULT '0',
  `sid` varchar(15) NOT NULL,
  `flag` tinyint(3) unsigned NOT NULL,
  `cate` int(10) unsigned NOT NULL,
  `num_iid` varchar(15) NOT NULL,
  `title` varchar(250) NOT NULL,
  `keywords` varchar(250) NOT NULL,
  `description` varchar(250) NOT NULL,
  `sort` int(10) unsigned NOT NULL DEFAULT '0',
  `nick` varchar(100) NOT NULL,
  `picurl` varchar(250) NOT NULL,
  `images` text NOT NULL,
  `url` varchar(400) NOT NULL,
  `price` decimal(12,1) unsigned NOT NULL,
  `message` text NOT NULL,
  `start_time` int(10) unsigned NOT NULL,
  `end_time` int(10) unsigned NOT NULL,
  `yh_price` decimal(12,1) unsigned NOT NULL,
  `views` int(10) unsigned NOT NULL,
  `like` int(11) unsigned NOT NULL,
  `bili` int(10) NOT NULL,
  `shop_type` tinyint(1) unsigned NOT NULL,
  `ly` varchar(250) NOT NULL,
  `type` varchar(10) NOT NULL,
  `type_id` int(11) NOT NULL,
  `sum` int(11) NOT NULL,
  `juan_url` varchar(300) NOT NULL,
  `juan_price` int(5) unsigned NOT NULL,
  `quan_num` int(11) NOT NULL,
  `quan_sum` int(11) NOT NULL,
  `tkl` varchar(30) NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  `posttime` int(10) unsigned NOT NULL,
  `bili_type` tinyint(1) NOT NULL,
  `status` tinyint(2) NOT NULL,
  `brand_id` int(11) NOT NULL,
  `dtk_id` int(11) NOT NULL,
  PRIMARY KEY (`aid`),
  KEY `num_iid` (`num_iid`),
  KEY `type` (`type`,`type_id`),
  KEY `aid_status` (`aid`,`status`,`title`),
  KEY `status` (`fid`,`status`),
  KEY `status_juan_type` (`status`,`juan_url`,`type_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3385 ;

CREATE TABLE IF NOT EXISTS `ttae_group` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `power` text NOT NULL,
  `login_admin` tinyint(1) NOT NULL,
  `system` tinyint(1) NOT NULL,
  `picurl` varchar(100) NOT NULL,
  `jf_min` int(11) NOT NULL,
  `jf_max` int(11) NOT NULL,
  `fanli` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=32 ;

CREATE TABLE IF NOT EXISTS `ttae_img` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(250) NOT NULL,
  `picurl` text NOT NULL,
  `cate` int(11) NOT NULL,
  `url` varchar(250) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  `description` varchar(250) NOT NULL,
  `like` int(11) NOT NULL,
  `hate` int(11) NOT NULL,
  `message` text NOT NULL,
  `from_name` varchar(40) NOT NULL,
  `from_url` varchar(150) NOT NULL,
  `sort` int(11) NOT NULL,
  `hide` tinyint(1) unsigned NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`hide`),
  KEY `sort` (`sort`,`hide`,`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1925 ;

CREATE TABLE IF NOT EXISTS `ttae_like` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `username` varchar(30) NOT NULL,
  `title` varchar(100) NOT NULL,
  `type_id` int(11) NOT NULL,
  `num_iid` varchar(15) NOT NULL,
  `type` varchar(15) NOT NULL,
  `picurl` varchar(150) NOT NULL,
  `jf` tinyint(3) NOT NULL,
  `url` varchar(30) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_like_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `uid` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_member` (
  `uid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `password` varchar(32) NOT NULL,
  `email` varchar(30) NOT NULL,
  `key` varchar(10) NOT NULL,
  `money` decimal(10,2) NOT NULL,
  `groupid` tinyint(3) unsigned NOT NULL,
  `seller` tinyint(1) NOT NULL,
  `jf` int(11) NOT NULL,
  `max_jf` int(11) NOT NULL,
  `wangwang` varchar(20) NOT NULL,
  `qq` varchar(13) NOT NULL,
  `weixin` varchar(30) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `address` varchar(100) NOT NULL,
  `content` varchar(250) NOT NULL,
  `regip` varchar(15) NOT NULL,
  `login_ip` varchar(15) NOT NULL,
  `login_time` int(11) NOT NULL,
  `login_count` int(11) NOT NULL,
  `regdate` int(11) NOT NULL,
  `name` varchar(20) NOT NULL,
  `sex` tinyint(1) NOT NULL,
  `order_number` varchar(4) NOT NULL,
  `picurl` varchar(250) NOT NULL,
  `login_name` varchar(50) NOT NULL,
  `t_uid` int(11) NOT NULL,
  `alipay` varchar(30) NOT NULL,
  `alipay_name` varchar(30) NOT NULL,
  `t_name` varchar(30) NOT NULL,
  `login_id` varchar(50) NOT NULL,
  `email_check` tinyint(1) NOT NULL,
  `phone_check` tinyint(1) NOT NULL,
  `end_time` int(11) NOT NULL,
  `check` tinyint(1) NOT NULL,
  `auto_update` tinyint(1) NOT NULL,
  PRIMARY KEY (`uid`),
  KEY `check` (`check`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;

CREATE TABLE IF NOT EXISTS `ttae_message` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `type` varchar(10) NOT NULL,
  `contact` varchar(20) NOT NULL,
  `company_name` varchar(30) NOT NULL,
  `url` varchar(150) NOT NULL,
  `content` text NOT NULL,
  `check` tinyint(1) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_money` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `username` varchar(30) NOT NULL,
  `type` tinyint(2) NOT NULL,
  `money` decimal(10,2) NOT NULL,
  `org_money` decimal(10,2) NOT NULL,
  `desc` varchar(200) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_nav` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `url` varchar(100) NOT NULL,
  `target` tinyint(1) NOT NULL,
  `classname` varchar(20) NOT NULL,
  `sort` int(11) NOT NULL,
  `type` tinyint(1) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sort` (`sort`,`type`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=23 ;

CREATE TABLE IF NOT EXISTS `ttae_news` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cate` int(11) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  `title` varchar(250) NOT NULL,
  `content` text NOT NULL,
  `images` text NOT NULL,
  `picurl` varchar(255) NOT NULL,
  `views` int(11) NOT NULL,
  `sort` int(11) NOT NULL,
  `goods` text NOT NULL,
  `check` tinyint(1) NOT NULL,
  `like` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  `image_type` tinyint(1) NOT NULL,
  `vedio` varchar(250) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sort` (`sort`),
  KEY `fid` (`sort`),
  KEY `tag` (`cate`),
  FULLTEXT KEY `picurl` (`picurl`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_order_list` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(150) NOT NULL,
  `num` int(10) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `yongjin` decimal(5,2) NOT NULL,
  `bili` decimal(10,2) NOT NULL,
  `pingtai` varchar(10) NOT NULL,
  `num_iid` varchar(15) NOT NULL,
  `order_number` varchar(18) NOT NULL,
  `create_time` int(11) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `type` tinyint(1) NOT NULL,
  `dateline` int(11) NOT NULL,
  `uid` int(11) NOT NULL,
  `username` varchar(30) NOT NULL,
  `jf` int(11) NOT NULL,
  `end_time` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `num_iid` (`num_iid`,`status`,`uid`),
  KEY `uid` (`uid`),
  KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_pics` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fup` int(10) unsigned NOT NULL,
  `title` varchar(250) NOT NULL,
  `url` varchar(200) NOT NULL,
  `sort` int(10) unsigned NOT NULL,
  `hide` tinyint(1) unsigned NOT NULL,
  `picurl` varchar(200) NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  `content` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=98 ;

CREATE TABLE IF NOT EXISTS `ttae_pics_type` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `content` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=34 ;

CREATE TABLE IF NOT EXISTS `ttae_setting` (
  `name` varchar(20) NOT NULL,
  `value` text NOT NULL,
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `ttae_shop` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cate` int(10) unsigned NOT NULL,
  `shop_type` tinyint(3) NOT NULL,
  `shop_tag` tinyint(2) NOT NULL DEFAULT '0',
  `nick` varchar(30) NOT NULL,
  `sid` varchar(20) NOT NULL,
  `start_time` int(11) NOT NULL,
  `end_time` int(11) NOT NULL,
  `zk` float NOT NULL,
  `title` varchar(200) NOT NULL,
  `keywords` varchar(250) NOT NULL,
  `description` varchar(250) NOT NULL,
  `desc` text NOT NULL,
  `pic_path` varchar(200) NOT NULL,
  `picurl` varchar(200) NOT NULL,
  `banner` varchar(250) NOT NULL,
  `url` varchar(100) NOT NULL,
  `hide` tinyint(1) unsigned NOT NULL,
  `sort` int(10) unsigned NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sid` (`sid`),
  KEY `fup` (`cate`),
  KEY `shop_tag` (`shop_tag`),
  KEY `hide` (`hide`),
  KEY `cate` (`shop_type`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ;

CREATE TABLE IF NOT EXISTS `ttae_sign` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(10) unsigned NOT NULL DEFAULT '0',
  `username` varchar(100) NOT NULL,
  `jf` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(15) NOT NULL,
  `org_jf` int(6) NOT NULL DEFAULT '0',
  `type` varchar(20) NOT NULL,
  `type_id` int(11) NOT NULL,
  `add` tinyint(1) NOT NULL,
  `desc` varchar(250) NOT NULL,
  `dateline` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`),
  KEY `username` (`username`),
  KEY `type` (`type`),
  KEY `add` (`add`),
  KEY `uid_2` (`uid`),
  KEY `type_2` (`type`),
  KEY `type_id` (`type_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

CREATE TABLE IF NOT EXISTS `ttae_style` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `cate` int(11) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  `title` varchar(250) NOT NULL,
  `content` text NOT NULL,
  `images` text NOT NULL,
  `picurl` varchar(255) NOT NULL,
  `views` int(11) NOT NULL,
  `sort` int(11) NOT NULL,
  `goods` text NOT NULL,
  `length` tinyint(3) NOT NULL,
  `check` tinyint(1) NOT NULL,
  `like` int(11) NOT NULL,
  `post` tinyint(1) NOT NULL,
  `username` varchar(30) NOT NULL,
  `user_url` varchar(250) NOT NULL,
  `user_pic` varchar(250) NOT NULL,
  `user_desc` varchar(250) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sort` (`sort`),
  KEY `fid` (`sort`),
  KEY `uid` (`uid`),
  KEY `tag` (`cate`),
  FULLTEXT KEY `picurl` (`picurl`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=198 ;

CREATE TABLE IF NOT EXISTS `ttae_tixian` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `username` varchar(30) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `money` decimal(10,2) NOT NULL,
  `org_money` decimal(10,2) NOT NULL,
  `shouxufei` decimal(5,2) NOT NULL,
  `msg` varchar(200) NOT NULL,
  `updatetime` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `ttae_weixin_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `news_id` int(11) NOT NULL,
  `is_thumb` tinyint(1) NOT NULL,
  `url` varchar(150) NOT NULL,
  `weixin_url` varchar(150) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `url` (`url`),
  KEY `news_id` (`news_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

CREATE TABLE IF NOT EXISTS `ttae_weixin_news` (
  `id` tinyint(4) NOT NULL AUTO_INCREMENT,
  `list_id` int(11) NOT NULL,
  `title` varchar(100) NOT NULL,
  `picurl` varchar(200) NOT NULL,
  `url` varchar(100) NOT NULL,
  `content` text NOT NULL,
  `desc` varchar(300) NOT NULL,
  `username` varchar(30) NOT NULL,
  `show_pic` tinyint(1) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

CREATE TABLE IF NOT EXISTS `ttae_weixin_news_list` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `mediaid` varchar(70) NOT NULL,
  `post_groupid` varchar(50) NOT NULL,
  `post_time` int(11) NOT NULL,
  `msg_id` varchar(20) NOT NULL,
  `msg_data_id` varchar(20) NOT NULL,
  `msg_status` varchar(200) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

CREATE TABLE IF NOT EXISTS `ttae_yaoqing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `t_uid` int(11) NOT NULL,
  `platform` tinyint(1) NOT NULL,
  `reg_platform` tinyint(1) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `regdate` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
