DROP TABLE IF EXISTS `qs_account`;
CREATE TABLE `qs_account` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) NOT NULL,
  `utype` tinyint(3) NOT NULL,
  `available_funds` decimal(10,2) NOT NULL default '0.00',
  `blocked_funds` decimal(10,2) NOT NULL default '0.00',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||account表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_account_log`;
CREATE TABLE `qs_account_log` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) NOT NULL,
  `puid` int(10) NOT NULL,
  `utype` tinyint(3) NOT NULL,
  `username` varchar(100) NOT NULL,
  `text_log` varchar(255) NOT NULL,
  `state` varchar(50) NOT NULL,
  `addtime` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||account_log表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_account_withdrawal`;
CREATE TABLE `qs_account_withdrawal` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `oid` varchar(50) NOT NULL,
  `uid` int(10) NOT NULL,
  `utype` tinyint(3) NOT NULL default '1',
  `username` varchar(50) NOT NULL,
  `extract_money` decimal(10,2) NOT NULL,
  `extract_pay_type` varchar(20) NOT NULL,
  `extract_pay_account` varchar(50) NOT NULL,
  `state` int(10) NOT NULL default '1',
  `addtime` int(10) NOT NULL,
  `payment_time` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||account_withdrawal表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_ad`;
CREATE TABLE `qs_ad` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `subsite_id` smallint(5) unsigned NOT NULL default '0',
  `alias` varchar(80) NOT NULL,
  `is_display` tinyint(4) NOT NULL default '1',
  `category_id` smallint(5) NOT NULL,
  `type_id` smallint(5) NOT NULL,
  `title` varchar(100) NOT NULL,
  `note` varchar(230) NOT NULL,
  `show_order` int(10) unsigned NOT NULL default '50',
  `addtime` int(10) unsigned NOT NULL,
  `starttime` int(10) unsigned NOT NULL,
  `deadline` int(11) NOT NULL default '0',
  `text_content` varchar(250) NOT NULL,
  `text_url` varchar(250) NOT NULL,
  `text_color` varchar(60) NOT NULL,
  `img_path` varchar(250) NOT NULL,
  `img_url` varchar(250) NOT NULL,
  `img_explain` varchar(250) NOT NULL,
  `img_uid` int(10) NOT NULL default '0',
  `code_content` text NOT NULL,
  `flash_path` varchar(250) NOT NULL,
  `flash_width` int(10) unsigned NOT NULL,
  `flash_height` int(10) unsigned NOT NULL,
  `floating_type` tinyint(3) unsigned NOT NULL default '1',
  `floating_width` int(10) unsigned NOT NULL,
  `floating_height` int(10) unsigned NOT NULL,
  `floating_url` varchar(250) NOT NULL,
  `floating_path` varchar(250) NOT NULL,
  `floating_left` varchar(10) NOT NULL,
  `floating_right` varchar(10) NOT NULL,
  `floating_top` int(11) NOT NULL,
  `video_path` varchar(250) NOT NULL,
  `video_width` int(10) unsigned NOT NULL,
  `video_height` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `alias_starttime_deadline` (`alias`,`starttime`,`deadline`)
) TYPE=MyISAM;

||-_-||ad表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_ad_category`;
CREATE TABLE `qs_ad_category` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `alias` varchar(100) NOT NULL,
  `type_id` int(10) unsigned NOT NULL,
  `categoryname` varchar(100) NOT NULL,
  `admin_set` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||ad_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_admin`;
CREATE TABLE `qs_admin` (
  `admin_id` smallint(5) unsigned NOT NULL auto_increment,
  `admin_name` varchar(40) NOT NULL,
  `email` varchar(40) NOT NULL,
  `pwd` varchar(32) NOT NULL,
  `pwd_hash` varchar(30) NOT NULL,
  `purview` text NOT NULL,
  `rank` varchar(32) NOT NULL,
  `add_time` int(10) NOT NULL,
  `last_login_time` int(10) NOT NULL,
  `last_login_ip` varchar(15) NOT NULL,
  PRIMARY KEY  (`admin_id`)
) TYPE=MyISAM;

||-_-||admin表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_admin_log`;
CREATE TABLE `qs_admin_log` (
  `log_id` int(10) unsigned NOT NULL auto_increment,
  `admin_name` varchar(20) NOT NULL,
  `add_time` int(10) NOT NULL,
  `log_value` varchar(255) NOT NULL,
  `log_ip` varchar(20) NOT NULL,
  `log_type` tinyint(1) unsigned NOT NULL default '1',
  PRIMARY KEY  (`log_id`)
) TYPE=MyISAM;

||-_-||admin_log表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_article`;
CREATE TABLE `qs_article` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `subsite_id` smallint(5) unsigned NOT NULL default '0',
  `type_id` tinyint(3) unsigned NOT NULL,
  `parentid` smallint(5) unsigned NOT NULL,
  `title` varchar(100) NOT NULL,
  `content` mediumtext NOT NULL,
  `tit_color` varchar(10) default NULL,
  `tit_b` tinyint(1) unsigned NOT NULL default '0',
  `Small_img` varchar(80) default NULL,
  `author` varchar(50) default NULL,
  `source` varchar(100) default NULL,
  `focos` tinyint(4) unsigned NOT NULL default '1',
  `is_display` tinyint(3) unsigned NOT NULL default '1',
  `is_url` varchar(200) NOT NULL default '0',
  `seo_keywords` varchar(100) default NULL,
  `seo_description` varchar(200) default NULL,
  `click` int(10) unsigned NOT NULL default '1',
  `addtime` int(10) unsigned NOT NULL,
  `article_order` smallint(5) unsigned NOT NULL default '0',
  `robot` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `type_id` (`type_id`,`article_order`,`id`),
  KEY `click` (`click`),
  KEY `focos_article_order` (`focos`,`article_order`,`id`),
  KEY `addtime` (`addtime`),
  KEY `parentid` (`parentid`,`article_order`,`id`)
) TYPE=MyISAM;

||-_-||article表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_article_category`;

CREATE TABLE `qs_article_category` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `parentid` smallint(5) unsigned NOT NULL,
  `categoryname` varchar(80) NOT NULL,
  `category_order` smallint(5) unsigned NOT NULL default '0',
  `title` varchar(255) default NULL,
  `description` varchar(255) default NULL,
  `keywords` varchar(255) default NULL,
  `admin_set` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||article_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_article_property`;

CREATE TABLE `qs_article_property` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `categoryname` varchar(30) NOT NULL,
  `category_order` smallint(5) unsigned NOT NULL default '0',
  `admin_set` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||article_property表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_audit_reason`;

CREATE TABLE `qs_audit_reason` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `jobs_id` int(10) unsigned NOT NULL default '0',
  `company_id` int(10) unsigned NOT NULL default '0',
  `resume_id` int(10) unsigned NOT NULL default '0',
  `reason` varchar(255) NOT NULL,
  `addtime` int(10) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `jobs_id` (`jobs_id`),
  KEY `company_id` (`company_id`),
  KEY `resume_id` (`resume_id`)
) TYPE=MyISAM;

||-_-||audit_reason表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_captcha`;

CREATE TABLE `qs_captcha` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||captcha表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_category`;

CREATE TABLE `qs_category` (
  `c_id` int(10) unsigned NOT NULL auto_increment,
  `c_parentid` int(10) unsigned NOT NULL,
  `c_alias` char(30) NOT NULL,
  `c_name` char(30) NOT NULL,
  `c_order` int(10) NOT NULL,
  `c_index` char(1) NOT NULL,
  `c_note` char(60) NOT NULL,
  `stat_jobs` char(15) NOT NULL,
  `stat_resume` char(15) NOT NULL,
  PRIMARY KEY  (`c_id`),
  KEY `c_alias` (`c_alias`)
) TYPE=MyISAM;

||-_-||category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_category_district`;

CREATE TABLE `qs_category_district` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `parentid` int(10) unsigned NOT NULL default '0',
  `categoryname` varchar(30) NOT NULL,
  `category_order` smallint(5) unsigned NOT NULL default '0',
  `stat_jobs` varchar(15) NOT NULL,
  `stat_resume` varchar(15) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||category_district表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_category_group`;

CREATE TABLE `qs_category_group` (
  `g_id` int(10) unsigned NOT NULL auto_increment,
  `g_alias` varchar(60) NOT NULL,
  `g_name` varchar(100) NOT NULL,
  `g_sys` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`g_id`)
) TYPE=MyISAM;

||-_-||category_group表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_category_jobs`;

CREATE TABLE `qs_category_jobs` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `parentid` smallint(5) unsigned NOT NULL,
  `categoryname` varchar(80) NOT NULL,
  `category_order` smallint(5) unsigned NOT NULL default '0',
  `stat_jobs` varchar(15) NOT NULL,
  `stat_resume` varchar(15) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `parentid` (`parentid`)
) TYPE=MyISAM;

||-_-||category_jobs表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_down_resume`;

CREATE TABLE `qs_company_down_resume` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `resume_id` int(10) unsigned NOT NULL,
  `resume_name` varchar(60) NOT NULL,
  `resume_uid` int(10) unsigned NOT NULL,
  `company_parentuid` int(10) unsigned NOT NULL,
  `company_uid` int(10) unsigned NOT NULL,
  `company_name` varchar(60) NOT NULL,
  `down_addtime` int(10) unsigned NOT NULL,
  `talent` tinyint(1) unsigned NOT NULL,
  PRIMARY KEY  (`did`),
  KEY `resume_uid_rid` (`resume_uid`,`resume_id`),
  KEY `down_addtime` (`down_addtime`),
  KEY `company_uid_addtime` (`company_uid`,`down_addtime`)
) TYPE=MyISAM;

||-_-||company_down_resume表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_favorites`;

CREATE TABLE `qs_company_favorites` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `resume_id` int(10) unsigned NOT NULL,
  `company_parentuid` int(10) unsigned NOT NULL,
  `company_uid` int(10) unsigned NOT NULL,
  `favorites_addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`did`),
  KEY `company_uid` (`company_uid`)
) TYPE=MyISAM;

||-_-||company_favorites表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_img`;

CREATE TABLE `qs_company_img` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `company_id` int(10) unsigned NOT NULL,
  `img` varchar(120) NOT NULL,
  `addtime` int(100) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `company_id` (`company_id`)
) TYPE=MyISAM;

||-_-||company_img表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_interview`;

CREATE TABLE `qs_company_interview` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `resume_id` int(10) unsigned NOT NULL,
  `resume_name` varchar(30) NOT NULL,
  `resume_addtime` int(10) NOT NULL,
  `resume_uid` int(10) unsigned NOT NULL,
  `jobs_id` int(10) unsigned NOT NULL,
  `jobs_name` varchar(60) NOT NULL,
  `jobs_addtime` int(10) NOT NULL,
  `belong_id` int(10) unsigned NOT NULL,
  `belong_name` varchar(60) NOT NULL default '',
  `belong_addtime` int(10) NOT NULL,
  `belong_parentuid` int(10) unsigned NOT NULL,
  `belong_uid` int(10) unsigned NOT NULL,
  `interview_addtime` int(10) unsigned NOT NULL,
  `notes` varchar(255) NOT NULL default '',
  `is_look` tinyint(1) unsigned NOT NULL default '1',
  PRIMARY KEY  (`did`),
  KEY `resume_uid_resumeid` (`resume_uid`,`resume_id`),
  KEY `company_uid_jobid` (`belong_uid`,`jobs_id`)
) TYPE=MyISAM;

||-_-||company_interview表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_jobs_templates`;

CREATE TABLE `qs_company_jobs_templates` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `title` varchar(50) NOT NULL,
  `jobs_name` varchar(30) NOT NULL,
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `sex_cn` varchar(3) NOT NULL,
  `amount` smallint(5) unsigned NOT NULL,
  `category` varchar(50) NOT NULL,
  `category_cn` varchar(30) NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `district_cn` varchar(30) NOT NULL,
  `department` varchar(15) NOT NULL default '',
  `reporter` varchar(15) NOT NULL default '',
  `tag` varchar(160) NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `education_cn` varchar(30) NOT NULL,
  `uec` tinyint(1) unsigned NOT NULL default '0',
  `language` varchar(50) NOT NULL,
  `language_cn` varchar(100) NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `experience_cn` varchar(30) NOT NULL,
  `age_min` int(2) unsigned NOT NULL default '0',
  `age_max` int(2) unsigned NOT NULL default '0',
  `wage_min` int(5) unsigned NOT NULL default '0',
  `wage_max` int(5) unsigned NOT NULL default '0',
  `major` varchar(20) NOT NULL default '',
  `contents` varchar(1800) NOT NULL,
  `email` varchar(50) NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||company_jobs_templates表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_profile`;

CREATE TABLE `qs_company_profile` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `tpl` varchar(60) NOT NULL,
  `companyname` varchar(100) default NULL,
  `nature` smallint(5) unsigned NOT NULL,
  `nature_cn` varchar(30) NOT NULL,
  `trade` varchar(30) NOT NULL,
  `trade_cn` varchar(100) NOT NULL default '',
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `district_cn` varchar(30) NOT NULL,
  `scale` smallint(5) unsigned NOT NULL,
  `scale_cn` varchar(30) NOT NULL,
  `address` varchar(250) NOT NULL,
  `contact` varchar(100) NOT NULL,
  `sex` tinyint(1) unsigned NOT NULL,
  `sex_cn` varchar(3) NOT NULL,
  `telephone` varchar(130) NOT NULL,
  `email` varchar(100) NOT NULL,
  `website` varchar(100) NOT NULL,
  `certificate_img` varchar(80) NOT NULL,
  `logo` varchar(30) NOT NULL,
  `contents` text NOT NULL,
  `audit` tinyint(4) unsigned NOT NULL default '0',
  `map_open` tinyint(3) unsigned NOT NULL default '0',
  `map_x` varchar(50) NOT NULL,
  `map_y` varchar(50) NOT NULL,
  `map_zoom` tinyint(3) unsigned NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  `click` int(10) unsigned NOT NULL default '1',
  `user_status` tinyint(3) unsigned NOT NULL default '1',
  `tag` varchar(160) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `audit` (`audit`),
  KEY `addtime` (`addtime`)
) TYPE=MyISAM;

||-_-||company_profile表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_company_trade`;

CREATE TABLE `qs_company_trade` (
  `id` double unsigned NOT NULL auto_increment,
  `uid` double default NULL,
  `pid` double default NULL,
  `trade` double default NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||company_trade表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_config`;

CREATE TABLE `qs_config` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||config表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_consultant`;

CREATE TABLE `qs_consultant` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL default '',
  `tel` varchar(20) NOT NULL default '',
  `email` varchar(30) NOT NULL default '',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||consultant表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_crons`;

CREATE TABLE `qs_crons` (
  `cronid` smallint(5) unsigned NOT NULL auto_increment,
  `available` tinyint(1) unsigned NOT NULL,
  `admin_set` tinyint(1) unsigned NOT NULL default '0',
  `name` varchar(60) NOT NULL,
  `filename` varchar(60) NOT NULL,
  `lastrun` int(10) unsigned NOT NULL,
  `nextrun` int(10) unsigned NOT NULL,
  `weekday` tinyint(1) NOT NULL,
  `day` tinyint(2) NOT NULL,
  `hour` tinyint(2) NOT NULL,
  `minute` varchar(60) NOT NULL,
  PRIMARY KEY  (`cronid`)
) TYPE=MyISAM;

||-_-||crons表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_down_list`;

CREATE TABLE `qs_down_list` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `list_id` int(10) unsigned NOT NULL,
  `down_time` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||down_list表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_entrust_hunter`;

CREATE TABLE `qs_entrust_hunter` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `hunter_uid` int(10) NOT NULL,
  `hunter_id` int(10) NOT NULL,
  `hunter_name` varchar(50) NOT NULL,
  `jobs_id` int(10) NOT NULL,
  `jobs_type` int(10) NOT NULL,
  `jobs_name` varchar(255) NOT NULL,
  `company_uid` int(10) NOT NULL,
  `company_puid` int(10) NOT NULL,
  `company_id` int(10) NOT NULL,
  `company_name` varchar(200) NOT NULL,
  `resume_id` int(10) NOT NULL,
  `resume_name` varchar(200) NOT NULL,
  `resume_uid` int(10) NOT NULL,
  `entrust_type` int(10) NOT NULL default '1',
  `is_apply` int(10) NOT NULL default '0',
  `state` int(10) NOT NULL default '0',
  `addtime` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||entrust_hunter表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_explain`;

CREATE TABLE `qs_explain` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `subsite_id` smallint(5) unsigned NOT NULL default '0',
  `type_id` smallint(5) unsigned NOT NULL,
  `title` varchar(100) NOT NULL,
  `content` mediumtext NOT NULL,
  `tit_color` varchar(10) default NULL,
  `tit_b` tinyint(1) NOT NULL default '0',
  `is_display` tinyint(3) unsigned NOT NULL default '1',
  `is_url` varchar(200) NOT NULL default '0',
  `seo_keywords` varchar(100) default NULL,
  `seo_description` varchar(200) default NULL,
  `click` int(11) NOT NULL default '1',
  `addtime` int(10) NOT NULL,
  `show_order` smallint(5) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `type_id` (`type_id`)
) TYPE=MyISAM;

||-_-||explain表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_explain_category`;

CREATE TABLE `qs_explain_category` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `categoryname` varchar(80) NOT NULL,
  `category_order` smallint(5) unsigned NOT NULL default '0',
  `admin_set` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||explain_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_feedback`;

CREATE TABLE `qs_feedback` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `email` varchar(50) NOT NULL,
  `feedback` varchar(250) NOT NULL,
  `addtime` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||feedback表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hotword`;

CREATE TABLE `qs_hotword` (
  `w_id` int(10) unsigned NOT NULL auto_increment,
  `w_word` varchar(120) NOT NULL,
  `w_hot` int(10) unsigned NOT NULL default '1',
  PRIMARY KEY  (`w_id`),
  KEY `w_word` (`w_word`),
  KEY `w_hot` (`w_hot`)
) TYPE=MyISAM;

||-_-||hotword表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_category`;

CREATE TABLE `qs_hunter_category` (
  `id` double unsigned NOT NULL auto_increment,
  `uid` double default NULL,
  `pid` double default NULL,
  `topclass` int(5) NOT NULL,
  `category` int(5) NOT NULL,
  `subclass` int(5) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||hunter_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_collaborative`;

CREATE TABLE `qs_hunter_collaborative` (
  `id` int(10) NOT NULL auto_increment,
  `hunter_uid` int(10) NOT NULL,
  `company_name` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||hunter_collaborative表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_down_resume`;

CREATE TABLE `qs_hunter_down_resume` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `resume_id` int(10) unsigned NOT NULL,
  `resume_fullname` varchar(60) NOT NULL default '',
  `resume_uid` int(10) unsigned NOT NULL,
  `hunter_uid` int(10) unsigned NOT NULL,
  `hunter_name` varchar(60) NOT NULL,
  `down_addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`did`),
  KEY `resume_uid_rid` (`resume_uid`,`resume_id`),
  KEY `down_addtime` (`down_addtime`),
  KEY `hunter_uid_addtime` (`hunter_uid`,`down_addtime`)
) TYPE=MyISAM;

||-_-||hunter_down_resume表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_favorites`;

CREATE TABLE `qs_hunter_favorites` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `resume_id` int(10) unsigned NOT NULL,
  `hunter_uid` int(10) unsigned NOT NULL,
  `favorites_addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`did`),
  KEY `hunter_uid` (`hunter_uid`)
) TYPE=MyISAM;

||-_-||hunter_favorites表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_level_meal`;

CREATE TABLE `qs_hunter_level_meal` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(200) NOT NULL,
  `jobs_add` int(10) NOT NULL,
  `free_refresh_jobs` int(10) NOT NULL,
  `down_junior_resume` int(10) NOT NULL,
  `down_senior_resume` int(10) NOT NULL,
  `resume_to_word` int(10) NOT NULL,
  `report_junior_resume` int(10) NOT NULL,
  `report_senior_resume` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||hunter_level_meal表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_level_rule`;

CREATE TABLE `qs_hunter_level_rule` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `title` varchar(200) NOT NULL,
  `name` varchar(200) NOT NULL,
  `operation` tinyint(3) NOT NULL,
  `value` int(10) NOT NULL,
  `daymax` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||hunter_level_rule表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_profile`;

CREATE TABLE `qs_hunter_profile` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `belongcompany` varchar(60) NOT NULL default '',
  `companytelephone` varchar(60) NOT NULL,
  `belongcompany_audit` tinyint(1) NOT NULL default '0',
  `fullname` varchar(60) NOT NULL,
  `card` varchar(30) NOT NULL,
  `card_img` varchar(60) NOT NULL,
  `card_audit` tinyint(1) NOT NULL default '0',
  `sex` varchar(5) default NULL,
  `sex_cn` varchar(10) default NULL,
  `trade` varchar(100) NOT NULL,
  `trade_cn` varchar(255) NOT NULL,
  `category` varchar(100) NOT NULL,
  `category_cn` varchar(250) NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `district_cn` varchar(100) NOT NULL default '',
  `education` varchar(30) NOT NULL,
  `education_cn` varchar(150) NOT NULL,
  `worktime` varchar(30) character set gbk collate gbk_bin NOT NULL,
  `rank` varchar(10) NOT NULL,
  `rank_cn` varchar(30) NOT NULL,
  `birthdate` varchar(10) NOT NULL,
  `mobile` varchar(11) NOT NULL default '',
  `mobile_audit` tinyint(1) unsigned NOT NULL default '0',
  `email` varchar(80) NOT NULL default '',
  `email_audit` tinyint(1) unsigned NOT NULL default '0',
  `contents` text NOT NULL,
  `level_meal` tinyint(5) NOT NULL default '1',
  `level` int(10) NOT NULL default '0',
  `audit` tinyint(4) unsigned NOT NULL default '0',
  `addtime` int(10) unsigned NOT NULL,
  `user_status` tinyint(3) unsigned NOT NULL default '1',
  `avatars` varchar(30) NOT NULL,
  `avatars_audit` tinyint(1) NOT NULL default '0',
  `comment` int(10) unsigned NOT NULL,
  `likekey` varchar(220) NOT NULL,
  `last_login_time` int(10) NOT NULL,
  `tpl` varchar(60) NOT NULL,
  `click` int(10) unsigned NOT NULL default '1',
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `audit` (`audit`),
  KEY `addtime` (`addtime`),
  FULLTEXT KEY `key` (`likekey`)
) TYPE=MyISAM AUTO_INCREMENT=10000;

||-_-||hunter_profile表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_recommend`;

CREATE TABLE `qs_hunter_recommend` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `jobs_id` int(10) unsigned NOT NULL,
  `jobs_name` varchar(60) NOT NULL,
  `company_id` int(10) unsigned NOT NULL,
  `company_name` varchar(60) NOT NULL,
  `company_uid` int(10) unsigned NOT NULL,
  `company_puid` int(10) NOT NULL,
  `resume_id` int(10) unsigned default NULL,
  `resume_name` varchar(60) NOT NULL,
  `personal_uid` int(10) unsigned NOT NULL,
  `recommend_addtime` int(10) unsigned NOT NULL,
  `recommend_state` tinyint(3) NOT NULL default '0',
  PRIMARY KEY  (`did`),
  KEY `personal_uid_id` (`personal_uid`,`resume_id`),
  KEY `company_uid_jobid` (`company_uid`,`jobs_id`),
  KEY `personal_uid_addtime` (`personal_uid`,`recommend_addtime`)
) TYPE=MyISAM;

||-_-||hunter_recommend表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_hunter_trade`;

CREATE TABLE `qs_hunter_trade` (
  `id` double unsigned NOT NULL auto_increment,
  `uid` double default NULL,
  `pid` double default NULL,
  `trade` double default NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||hunter_trade表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs`;

CREATE TABLE `qs_jobs` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `parentuid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `jobs_type` tinyint(1) unsigned NOT NULL default '0',
  `jobs_name` varchar(30) NOT NULL,
  `companyname_note` varchar(250) NOT NULL default '',
  `companyname` varchar(50) NOT NULL default '',
  `company_id` int(10) unsigned NOT NULL,
  `companynature` tinyint(3) unsigned NOT NULL,
  `companynature_cn` varchar(50) NOT NULL,
  `company_addtime` int(10) unsigned NOT NULL,
  `company_audit` tinyint(1) unsigned NOT NULL default '0',
  `company_introduce` text,
  `recommend` tinyint(1) unsigned NOT NULL default '0',
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `sex_cn` varchar(3) NOT NULL,
  `amount` smallint(5) unsigned NOT NULL,
  `category` varchar(30) NOT NULL default '',
  `category_cn` varchar(100) NOT NULL default '',
  `trade` varchar(30) NOT NULL,
  `trade_cn` varchar(100) NOT NULL default '',
  `scale` smallint(5) unsigned NOT NULL,
  `scale_cn` varchar(30) NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `district_cn` varchar(30) NOT NULL,
  `department` varchar(15) NOT NULL default '',
  `reporter` varchar(15) NOT NULL default '',
  `tag` varchar(160) NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `education_cn` varchar(30) NOT NULL,
  `uec` tinyint(1) unsigned NOT NULL default '0',
  `language` varchar(50) NOT NULL,
  `language_cn` varchar(100) NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `experience_cn` varchar(30) NOT NULL,
  `age_min` int(2) unsigned NOT NULL default '0',
  `age_max` int(2) unsigned NOT NULL default '0',
  `wage_min` int(5) unsigned NOT NULL default '0',
  `wage_max` int(5) unsigned NOT NULL default '0',
  `major` varchar(20) NOT NULL default '',
  `contents` text NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  `deadline` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  `finishtime` int(10) unsigned NOT NULL,
  `email` varchar(50) NOT NULL,
  `setmeal_deadline` int(10) unsigned NOT NULL default '0',
  `setmeal_id` smallint(5) unsigned NOT NULL,
  `setmeal_name` varchar(60) NOT NULL,
  `audit` tinyint(1) unsigned NOT NULL default '1',
  `reward` int(10) unsigned NOT NULL default '0',
  `is_bloked` tinyint(1) NOT NULL default '0',
  `display` tinyint(1) unsigned NOT NULL default '1',
  `click` int(10) unsigned NOT NULL default '1',
  `key` text NOT NULL,
  `job_status` tinyint(1) unsigned NOT NULL default '1',
  `user_status` tinyint(1) unsigned NOT NULL default '1',
  `tpl` varchar(60) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `refreshtime` (`refreshtime`),
  KEY `addtime` (`addtime`),
  KEY `company_id` (`company_id`),
  KEY `deadline` (`deadline`),
  KEY `setmeal_deadline` (`setmeal_deadline`)
) TYPE=MyISAM;

||-_-||jobs表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_category`;

CREATE TABLE `qs_jobs_category` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `pid` int(10) unsigned NOT NULL,
  `topclass` int(10) unsigned NOT NULL,
  `category` int(10) unsigned NOT NULL,
  `subclass` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`),
  KEY `category` (`topclass`,`category`,`subclass`)
) TYPE=MyISAM;

||-_-||jobs_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_contact`;

CREATE TABLE `qs_jobs_contact` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `pid` int(10) unsigned NOT NULL,
  `contact` varchar(80) NOT NULL,
  `telephone` varchar(80) NOT NULL,
  `email` varchar(80) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`)
) TYPE=MyISAM;

||-_-||jobs_contact表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_search_hot`;

CREATE TABLE `qs_jobs_search_hot` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `parentuid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `jobs_type` tinyint(1) unsigned NOT NULL default '0',
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `companynature` tinyint(3) unsigned NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `wage_min` int(5) unsigned NOT NULL,
  `wage_max` int(5) unsigned NOT NULL,
  `scale` smallint(5) unsigned NOT NULL default '0',
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  `click` int(10) unsigned NOT NULL default '1',
  PRIMARY KEY  (`id`),
  KEY `click` (`click`),
  KEY `sdistrict_hot` (`sdistrict`,`click`),
  KEY `district_hot` (`district`,`click`),
  KEY `uid` (`uid`),
  KEY `refreshtime` (`refreshtime`),
  KEY `parentuid` (`parentuid`)
) TYPE=MyISAM;

||-_-||jobs_search_hot表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_search_key`;

CREATE TABLE `qs_jobs_search_key` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `parentuid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `jobs_type` tinyint(1) unsigned NOT NULL default '0',
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `companynature` tinyint(3) unsigned NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `wage_min` int(5) unsigned NOT NULL,
  `wage_max` int(5) unsigned NOT NULL,
  `scale` smallint(5) unsigned NOT NULL default '0',
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  `likekey` varchar(255) NOT NULL,
  `key` text NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `refreshtime` (`refreshtime`),
  KEY `uid` (`uid`),
  KEY `district` (`district`),
  KEY `sdistrict` (`sdistrict`),
  KEY `parentuid` (`parentuid`),
  FULLTEXT KEY `key` (`key`)
) TYPE=MyISAM;

||-_-||jobs_search_key表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_search_recommend`;

CREATE TABLE `qs_jobs_search_recommend` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `parentuid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `jobs_type` tinyint(1) unsigned NOT NULL default '0',
  `recommend` tinyint(1) unsigned NOT NULL default '0',
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `companynature` tinyint(3) unsigned NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `wage_min` int(5) unsigned NOT NULL,
  `wage_max` int(5) unsigned NOT NULL,
  `scale` smallint(5) unsigned NOT NULL default '0',
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `district_rtime` (`district`,`recommend`,`refreshtime`),
  KEY `sdistrict_rtime` (`sdistrict`,`recommend`,`refreshtime`),
  KEY `uid` (`uid`),
  KEY `category_rtime` (`recommend`,`refreshtime`),
  KEY `parentuid` (`parentuid`),
  KEY `recommend_rtime` (`recommend`,`refreshtime`)
) TYPE=MyISAM;

||-_-||jobs_search_recommend表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_search_rtime`;

CREATE TABLE `qs_jobs_search_rtime` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `parentuid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `jobs_type` tinyint(1) unsigned NOT NULL default '0',
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `companynature` tinyint(3) unsigned NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `wage_min` int(5) unsigned NOT NULL,
  `wage_max` int(5) unsigned NOT NULL,
  `scale` smallint(5) unsigned NOT NULL default '0',
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `refreshtime` (`refreshtime`),
  KEY `sdistrict_rtime` (`sdistrict`,`refreshtime`),
  KEY `district_rtime` (`district`,`refreshtime`),
  KEY `uid` (`uid`),
  KEY `parentuid` (`parentuid`)
) TYPE=MyISAM;

||-_-||jobs_search_rtime表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_search_scale`;

CREATE TABLE `qs_jobs_search_scale` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `parentuid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `jobs_type` tinyint(1) unsigned NOT NULL default '0',
  `sex` tinyint(1) unsigned NOT NULL default '3',
  `companynature` tinyint(3) unsigned NOT NULL,
  `scale` smallint(5) unsigned NOT NULL,
  `district` smallint(5) unsigned NOT NULL,
  `sdistrict` smallint(5) unsigned NOT NULL,
  `education` smallint(5) unsigned NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `wage_min` int(5) unsigned NOT NULL,
  `wage_max` int(5) unsigned NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `scale` (`scale`,`refreshtime`),
  KEY `district_scale` (`district`,`scale`,`refreshtime`),
  KEY `sdistrict_scale` (`sdistrict`,`scale`,`refreshtime`),
  KEY `parentuid` (`parentuid`)
) TYPE=MyISAM;

||-_-||jobs_search_scale表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_jobs_trade`;

CREATE TABLE `qs_jobs_trade` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `pid` int(10) unsigned NOT NULL,
  `trade` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`)
) TYPE=MyISAM;

||-_-||jobs_trade表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_link`;

CREATE TABLE `qs_link` (
  `link_id` int(10) unsigned NOT NULL auto_increment,
  `subsite_id` smallint(5) unsigned NOT NULL default '0',
  `type_id` tinyint(3) unsigned NOT NULL,
  `display` tinyint(1) unsigned NOT NULL default '1',
  `alias` varchar(30) NOT NULL,
  `link_name` varchar(255) NOT NULL,
  `link_url` varchar(255) NOT NULL,
  `link_logo` varchar(255) NOT NULL,
  `show_order` smallint(5) unsigned NOT NULL default '50',
  `Notes` varchar(255) default NULL,
  `app_notes` varchar(300) NOT NULL,
  PRIMARY KEY  (`link_id`),
  KEY `show_order` (`show_order`)
) TYPE=MyISAM;

||-_-||link表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_link_category`;

CREATE TABLE `qs_link_category` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `categoryname` varchar(80) NOT NULL,
  `c_sys` tinyint(1) unsigned NOT NULL default '0',
  `c_alias` varchar(30) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||link_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_list`;

CREATE TABLE `qs_list` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `title` varchar(80) NOT NULL,
  `trade` varchar(60) NOT NULL,
  `trade_cn` varchar(100) NOT NULL,
  `price` int(10) unsigned NOT NULL,
  `rank_title` tinyint(1) unsigned NOT NULL,
  `mobile` varchar(60) NOT NULL,
  `mobile_cn` varchar(100) NOT NULL,
  `email` varchar(60) NOT NULL,
  `email_cn` varchar(100) NOT NULL,
  `list_time` int(10) unsigned NOT NULL,
  `number` int(10) unsigned NOT NULL,
  `file` varchar(100) NOT NULL,
  `file_size` int(10) unsigned NOT NULL,
  `contents` text NOT NULL,
  `audit` tinyint(1) unsigned NOT NULL default '1',
  `key` text NOT NULL,
  `click` int(10) unsigned NOT NULL default '1',
  `addtime` int(10) unsigned NOT NULL,
  `tpl` varchar(60) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  FULLTEXT KEY `key` (`key`)
) TYPE=MyISAM;

||-_-||list表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_mail_templates`;

CREATE TABLE `qs_mail_templates` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||mail_templates表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_mailconfig`;

CREATE TABLE `qs_mailconfig` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||mailconfig表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_mailqueue`;

CREATE TABLE `qs_mailqueue` (
  `m_id` int(10) unsigned NOT NULL auto_increment,
  `m_type` tinyint(3) unsigned NOT NULL default '0',
  `m_addtime` int(10) unsigned NOT NULL,
  `m_sendtime` int(10) unsigned NOT NULL default '0',
  `m_mail` varchar(80) NOT NULL,
  `m_subject` varchar(200) NOT NULL,
  `m_body` text NOT NULL,
  PRIMARY KEY  (`m_id`)
) TYPE=MyISAM;

||-_-||mailqueue表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members`;

CREATE TABLE `qs_members` (
  `uid` int(10) unsigned NOT NULL auto_increment,
  `parentuid` int(10) unsigned NOT NULL default '0',
  `utype` tinyint(1) unsigned NOT NULL default '1',
  `username` varchar(100) NOT NULL,
  `email` varchar(80) NOT NULL,
  `email_audit` tinyint(1) unsigned NOT NULL default '0',
  `mobile` varchar(11) NOT NULL,
  `mobile_audit` tinyint(1) unsigned NOT NULL default '0',
  `password` varchar(100) NOT NULL default '',
  `sex` tinyint(1) NOT NULL,
  `sex_cn` varchar(3) NOT NULL,
  `fullname` varchar(10) NOT NULL,
  `pwd_hash` varchar(30) NOT NULL,
  `reg_time` int(10) NOT NULL,
  `reg_ip` varchar(15) NOT NULL,
  `last_login_time` int(10) NOT NULL,
  `last_login_ip` varchar(15) NOT NULL,
  `qq_openid` varchar(60) NOT NULL,
  `sina_access_token` varchar(60) NOT NULL,
  `taobao_access_token` varchar(60) NOT NULL,
  `status` tinyint(3) unsigned NOT NULL default '1',
  `consultant` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`uid`),
  UNIQUE KEY `username` (`username`),
  KEY `email` (`email`),
  KEY `mobile` (`mobile`),
  KEY `qq_openid` (`qq_openid`),
  KEY `sina_access_token` (`sina_access_token`),
  KEY `taobao_access_token` (`taobao_access_token`)
) TYPE=MyISAM;

||-_-||members表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members_handsel`;

CREATE TABLE `qs_members_handsel` (
  `id` int(10) NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `htype` varchar(60) NOT NULL,
  `points` int(10) default NULL,
  `addtime` int(10) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`,`htype`,`addtime`)
) TYPE=MyISAM;

||-_-||members_handsel表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members_handsel_level`;

CREATE TABLE `qs_members_handsel_level` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) NOT NULL,
  `htype` varchar(60) NOT NULL,
  `level` int(10) default NULL,
  `addtime` int(1) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||members_handsel_level表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members_log`;

CREATE TABLE `qs_members_log` (
  `log_id` int(10) unsigned NOT NULL auto_increment,
  `log_parentuid` int(10) unsigned NOT NULL,
  `log_uid` int(10) unsigned NOT NULL,
  `log_username` varchar(60) NOT NULL,
  `log_addtime` int(10) NOT NULL,
  `log_note` varchar(255) NOT NULL,
  `log_value` varchar(255) NOT NULL,
  `log_ip` varchar(20) NOT NULL,
  `log_address` varchar(255) NOT NULL,
  `log_utype` tinyint(1) unsigned NOT NULL default '1',
  `log_type` smallint(5) unsigned NOT NULL default '1',
  `log_mode` tinyint(1) unsigned NOT NULL,
  PRIMARY KEY  (`log_id`),
  KEY `log_username` (`log_username`),
  KEY `log_addtime` (`log_addtime`),
  KEY `type_addtime` (`log_type`,`log_addtime`),
  KEY `utype_addtime` (`log_utype`,`log_addtime`),
  KEY `uid_addtime` (`log_uid`,`log_addtime`),
  KEY `parentuid_addtime` (`log_parentuid`,`log_addtime`)
) TYPE=MyISAM;

||-_-||members_log表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members_points`;

CREATE TABLE `qs_members_points` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `points` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||members_points表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members_points_rule`;

CREATE TABLE `qs_members_points_rule` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `utype` tinyint(1) NOT NULL,
  `title` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `operation` tinyint(1) NOT NULL default '2',
  `value` int(10) unsigned NOT NULL,
  `daymax` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||members_points_rule表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_members_setmeal`;

CREATE TABLE `qs_members_setmeal` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `effective` tinyint(3) unsigned NOT NULL default '0',
  `uid` int(10) unsigned NOT NULL,
  `setmeal_id` int(10) unsigned NOT NULL,
  `setmeal_name` varchar(200) NOT NULL,
  `days` int(10) unsigned NOT NULL,
  `expense` int(10) unsigned NOT NULL,
  `jobs_ordinary` int(10) unsigned NOT NULL,
  `jobs_ordinary_porint_all` int(10) unsigned NOT NULL,
  `jobs_senior` int(10) unsigned NOT NULL,
  `jobs_senior_porint_all` int(10) unsigned NOT NULL,
  `jobs_entrust` int(10) unsigned NOT NULL,
  `jobs_entrust_porint_all` int(10) unsigned NOT NULL,
  `search_ordinary_resume` tinyint(1) unsigned NOT NULL,
  `see_ordinary_resume` int(10) unsigned NOT NULL,
  `down_ordinary_resume` int(10) unsigned NOT NULL,
  `down_ordinary_resume_day` int(10) unsigned NOT NULL,
  `search_senior_reusme` tinyint(1) unsigned NOT NULL,
  `see_senior_resume` int(10) unsigned NOT NULL,
  `down_senior_resume` int(10) unsigned NOT NULL,
  `down_senior_resume_day` int(10) unsigned NOT NULL,
  `interview_ordinary` int(10) unsigned NOT NULL,
  `interview_senior` int(10) unsigned NOT NULL,
  `account` int(10) unsigned NOT NULL,
  `company_web` tinyint(1) unsigned NOT NULL,
  `save_resume` tinyint(1) unsigned NOT NULL,
  `report_ordinary_resume` tinyint(1) unsigned NOT NULL,
  `report_senior_resume` tinyint(1) unsigned NOT NULL,
  `is_entrust_hunter` tinyint(1) unsigned NOT NULL,
  `index_ad` int(10) NOT NULL,
  `company_hot_show` int(10) NOT NULL,
  `added` varchar(250) NOT NULL,
  `starttime` int(10) unsigned NOT NULL,
  `endtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `effective_setmealid` (`effective`,`setmeal_id`),
  KEY `effective_endtime` (`effective`,`endtime`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||members_setmeal表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_navigation`;

CREATE TABLE `qs_navigation` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `alias` varchar(100) NOT NULL,
  `urltype` tinyint(3) unsigned NOT NULL default '0',
  `display` tinyint(3) unsigned NOT NULL default '0',
  `title` varchar(100) NOT NULL,
  `color` varchar(30) NOT NULL,
  `pagealias` varchar(100) NOT NULL,
  `list_id` varchar(30) NOT NULL,
  `tag` varchar(100) NOT NULL,
  `url` varchar(200) NOT NULL,
  `target` varchar(100) NOT NULL,
  `navigationorder` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||navigation表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_navigation_category`;

CREATE TABLE `qs_navigation_category` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `alias` varchar(100) NOT NULL,
  `categoryname` varchar(30) NOT NULL,
  `admin_set` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||navigation_category表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_order`;

CREATE TABLE `qs_order` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `utype` tinyint(1) unsigned NOT NULL,
  `uid` int(10) unsigned NOT NULL,
  `is_paid` tinyint(3) unsigned NOT NULL default '1',
  `oid` varchar(200) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `amount_points` int(100) unsigned NOT NULL default '0',
  `payment_name` varchar(20) NOT NULL,
  `points` int(10) unsigned NOT NULL,
  `addtime` int(11) unsigned NOT NULL,
  `payment_time` int(10) unsigned NOT NULL,
  `description` varchar(150) NOT NULL,
  `setmeal` int(10) unsigned NOT NULL,
  `notes` varchar(150) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `addtime` (`addtime`),
  KEY `payment_name` (`payment_name`),
  KEY `oid` (`oid`)
) TYPE=MyISAM;

||-_-||order表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_page`;

CREATE TABLE `qs_page` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `systemclass` tinyint(3) unsigned NOT NULL default '0',
  `pagetpye` tinyint(3) unsigned NOT NULL default '1',
  `alias` varchar(60) NOT NULL,
  `pname` varchar(12) NOT NULL,
  `file` varchar(100) NOT NULL,
  `tpl` varchar(100) NOT NULL,
  `rewrite` varchar(100) NOT NULL,
  `html` varchar(100) NOT NULL,
  `url` tinyint(3) unsigned NOT NULL default '0',
  `caching` int(10) unsigned NOT NULL default '0',
  `tag` varchar(60) NOT NULL,
  `title` varchar(200) NOT NULL,
  `description` varchar(200) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||page表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_payment`;

CREATE TABLE `qs_payment` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `listorder` int(10) unsigned NOT NULL default '50',
  `typename` varchar(15) NOT NULL,
  `byname` varchar(50) NOT NULL,
  `p_introduction` varchar(100) NOT NULL,
  `notes` text,
  `partnerid` varchar(80) default NULL,
  `ytauthkey` varchar(100) default NULL,
  `fee` varchar(6) NOT NULL default '0',
  `parameter1` varchar(50) default NULL,
  `parameter2` varchar(50) default NULL,
  `parameter3` varchar(50) default NULL,
  `p_install` tinyint(3) unsigned NOT NULL default '1',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||payment表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_personal_favorites`;

CREATE TABLE `qs_personal_favorites` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `personal_uid` int(10) unsigned NOT NULL,
  `jobs_id` int(10) unsigned NOT NULL,
  `jobs_name` varchar(100) NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`did`),
  KEY `personal_uid` (`personal_uid`)
) TYPE=MyISAM;

||-_-||personal_favorites表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_personal_jobs_apply`;

CREATE TABLE `qs_personal_jobs_apply` (
  `did` int(10) unsigned NOT NULL auto_increment,
  `resume_id` int(10) unsigned NOT NULL,
  `resume_name` varchar(60) NOT NULL,
  `personal_uid` int(10) unsigned NOT NULL,
  `jobs_id` int(10) unsigned NOT NULL,
  `jobs_name` varchar(60) NOT NULL,
  `belong_id` int(10) unsigned NOT NULL,
  `belong_name` varchar(60) NOT NULL default '',
  `belong_uid` int(10) unsigned NOT NULL,
  `belong_parentuid` int(10) unsigned NOT NULL,
  `apply_addtime` int(10) unsigned NOT NULL,
  `is_look` tinyint(1) unsigned NOT NULL default '1',
  `notes` varchar(200) NOT NULL,
  PRIMARY KEY  (`did`),
  KEY `personal_uid_id` (`personal_uid`,`resume_id`),
  KEY `company_uid_jobid` (`belong_uid`,`jobs_id`),
  KEY `company_parentuid_jobid` (`belong_parentuid`,`jobs_id`),
  KEY `company_uid_look` (`belong_uid`,`is_look`),
  KEY `company_parentuid_look` (`belong_parentuid`,`is_look`),
  KEY `personal_uid_addtime` (`personal_uid`,`apply_addtime`)
) TYPE=MyISAM;

||-_-||personal_jobs_apply表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_personal_shield_company`;

CREATE TABLE `qs_personal_shield_company` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `uid` smallint(5) unsigned NOT NULL,
  `comkeyword` varchar(100) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=utf8;

||-_-||personal_shield_company表创建成功！||-_-||


DROP TABLE IF EXISTS `qs_pms_sys`;

CREATE TABLE `qs_pms_sys` (
  `spmid` int(10) unsigned NOT NULL auto_increment,
  `spms_usertype` tinyint(1) unsigned NOT NULL default '0',
  `uid` int(10) unsigned default NULL,
  `spms_type` tinyint(1) NOT NULL default '1',
  `message` varchar(250) NOT NULL,
  `is_look` tinyint(1) unsigned NOT NULL default '1',
  `dateline` int(10) NOT NULL,
  PRIMARY KEY  (`spmid`)
) TYPE=MyISAM;

||-_-||pms_sys表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_refresh_log`;

CREATE TABLE `qs_refresh_log` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  `type` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||refresh_log表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_report`;

CREATE TABLE `qs_report` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `jobs_id` int(10) unsigned NOT NULL,
  `jobs_name` varchar(150) NOT NULL,
  `jobs_addtime` int(10) unsigned NOT NULL,
  `content` varchar(250) NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||report表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_report_hunter`;

CREATE TABLE `qs_report_hunter` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) NOT NULL,
  `username` varchar(50) NOT NULL,
  `hunter_id` int(10) NOT NULL,
  `hunter_uid` int(10) NOT NULL,
  `fullname` varchar(20) NOT NULL,
  `type` tinyint(2) NOT NULL,
  `addtime` int(10) NOT NULL,
  `content` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||report_hunter表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_report_list`;

CREATE TABLE `qs_report_list` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `username` varchar(100) NOT NULL,
  `list_id` int(10) unsigned NOT NULL,
  `list_title` varchar(80) NOT NULL,
  `report_type` tinyint(1) unsigned NOT NULL,
  `content` varchar(250) NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||report_list表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_report_resume`;

CREATE TABLE `qs_report_resume` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `resume_id` int(10) unsigned NOT NULL,
  `title` varchar(150) NOT NULL default '',
  `resume_addtime` int(10) unsigned NOT NULL,
  `content` varchar(250) NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  `type` tinyint(1) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||report_resume表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume`;

CREATE TABLE `qs_resume` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `display` tinyint(1) unsigned NOT NULL default '1',
  `audit` tinyint(1) unsigned NOT NULL default '1',
  `title` varchar(80) NOT NULL,
  `fullname` varchar(15) NOT NULL,
  `sex` tinyint(3) unsigned NOT NULL,
  `sex_cn` varchar(3) NOT NULL,
  `trade` varchar(60) NOT NULL,
  `trade_cn` varchar(100) NOT NULL,
  `birthdate` smallint(4) unsigned NOT NULL,
  `marriage` tinyint(3) unsigned NOT NULL,
  `marriage_cn` varchar(5) NOT NULL,
  `experience` smallint(5) unsigned NOT NULL,
  `experience_cn` varchar(30) NOT NULL,
  `district` varchar(60) NOT NULL default '',
  `district_cn` varchar(100) NOT NULL default '',
  `wage_hope` int(10) unsigned NOT NULL,
  `wage_hope_number` int(10) unsigned NOT NULL,
  `wage_hope_month` smallint(2) unsigned NOT NULL,
  `wage_current` int(10) unsigned NOT NULL,
  `wage_current_number` int(10) unsigned NOT NULL,
  `wage_current_month` smallint(2) unsigned NOT NULL,
  `secret` tinyint(1) unsigned NOT NULL,
  `residence` varchar(80) NOT NULL default '',
  `residence_cn` varchar(50) NOT NULL default '',
  `education` smallint(5) unsigned NOT NULL,
  `education_cn` varchar(30) NOT NULL default '',
  `current` tinyint(5) unsigned NOT NULL,
  `current_cn` varbinary(50) NOT NULL,
  `tag` varchar(160) NOT NULL,
  `telephone` varchar(50) NOT NULL,
  `email` varchar(60) NOT NULL default '',
  `currentjobs` varchar(200) NOT NULL default '',
  `intention_jobs` varchar(60) NOT NULL default '',
  `intention_jobs_cn` varchar(100) NOT NULL,
  `evaluation` varchar(200) NOT NULL default '',
  `photo_img` varchar(80) NOT NULL,
  `photo_audit` tinyint(1) unsigned NOT NULL default '1',
  `addtime` int(10) unsigned NOT NULL,
  `refreshtime` int(10) unsigned NOT NULL,
  `talent` tinyint(1) unsigned NOT NULL default '1',
  `complete_percent` tinyint(3) unsigned NOT NULL default '0',
  `user_status` tinyint(1) unsigned NOT NULL default '1',
  `key` text NOT NULL,
  `click` int(10) unsigned NOT NULL default '1',
  `tpl` varchar(60) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `refreshtime` (`refreshtime`),
  KEY `addtime` (`addtime`)
) TYPE=MyISAM AUTO_INCREMENT=10000;

||-_-||resume表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_district`;

CREATE TABLE `qs_resume_district` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `pid` int(10) unsigned NOT NULL,
  `district` int(10) unsigned NOT NULL,
  `sdistrict` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`),
  KEY `district` (`district`,`sdistrict`)
) TYPE=MyISAM;

||-_-||resume_district表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_education`;

CREATE TABLE `qs_resume_education` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `pid` int(10) unsigned NOT NULL,
  `uid` int(10) unsigned NOT NULL,
  `starttime` int(10) unsigned NOT NULL,
  `endtime` int(10) unsigned NOT NULL,
  `school` varchar(100) NOT NULL default '',
  `speciality` varchar(100) NOT NULL default '',
  `education` smallint(5) unsigned NOT NULL,
  `education_cn` varchar(30) NOT NULL,
  `uec` tinyint(1) unsigned NOT NULL default '0',
  `course` varchar(255) NOT NULL default '',
  `today` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||resume_education表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_jobs`;

CREATE TABLE `qs_resume_jobs` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `pid` int(10) unsigned NOT NULL,
  `topclass` int(10) unsigned NOT NULL,
  `category` int(10) unsigned NOT NULL,
  `subclass` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`),
  KEY `category` (`topclass`,`category`,`subclass`)
) TYPE=MyISAM;

||-_-||resume_jobs表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_language`;

CREATE TABLE `qs_resume_language` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `pid` int(10) unsigned NOT NULL,
  `uid` int(10) unsigned NOT NULL,
  `language` smallint(5) NOT NULL,
  `language_cn` varchar(50) NOT NULL,
  `level` smallint(5) unsigned NOT NULL,
  `level_cn` varchar(50) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||resume_languages表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_project`;

CREATE TABLE `qs_resume_project` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `pid` int(10) unsigned NOT NULL,
  `uid` int(10) unsigned NOT NULL,
  `starttime` int(10) unsigned NOT NULL,
  `endtime` int(10) unsigned NOT NULL,
  `project_name` varchar(50) NOT NULL,
  `project_describe` varchar(50) NOT NULL default '',
  `project_duty` varchar(50) NOT NULL default '',
  `today` tinyint(5) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||resume_project表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_search`;

CREATE TABLE `qs_resume_search` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL default '0',
  `sex` tinyint(3) unsigned NOT NULL default '1',
  `birthdate` smallint(4) unsigned NOT NULL default '0',
  `experience` smallint(5) unsigned NOT NULL default '0',
  `wage` int(10) unsigned NOT NULL default '0',
  `education` smallint(5) unsigned NOT NULL default '0',
  `current` smallint(5) unsigned NOT NULL,
  `photo` tinyint(1) unsigned NOT NULL default '0',
  `refreshtime` int(10) unsigned NOT NULL,
  `talent` tinyint(1) unsigned NOT NULL default '1',
  `display` tinyint(1) unsigned NOT NULL,
  `key` text,
  `likekey` text,
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`),
  KEY `refreshtime` (`refreshtime`),
  KEY `photo_rtime` (`photo`,`refreshtime`),
  KEY `talent_rtime` (`talent`,`refreshtime`),
  KEY `education_rtime` (`education`,`refreshtime`),
  KEY `experience_rtime` (`experience`,`refreshtime`),
  KEY `current_rtime` (`current`,`refreshtime`),
  FULLTEXT KEY `key` (`key`)
) TYPE=MyISAM AUTO_INCREMENT=10000;

||-_-||resume_search表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_trade`;

CREATE TABLE `qs_resume_trade` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `pid` int(10) unsigned NOT NULL,
  `trade` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`),
  KEY `trade` (`trade`)
) TYPE=MyISAM;

||-_-||resume_trade表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_resume_work`;

CREATE TABLE `qs_resume_work` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `pid` int(10) unsigned NOT NULL,
  `uid` int(10) unsigned NOT NULL,
  `starttime` int(10) unsigned NOT NULL,
  `endtime` int(10) unsigned NOT NULL,
  `companyname` varchar(50) NOT NULL,
  `jobs` varchar(30) NOT NULL,
  `content` text NOT NULL,
  `today` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `uid` (`uid`)
) TYPE=MyISAM;

||-_-||resume_work表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_search_resume_engine`;

CREATE TABLE `qs_search_resume_engine` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `TYPE_name` varchar(255) NOT NULL,
  `keyword` varchar(255) default NULL,
  `trade` varchar(255) default NULL,
  `trade_cn` varchar(255) default NULL,
  `category_id` varchar(255) default NULL,
  `category_cn` varchar(255) default NULL,
  `district_id` varchar(255) default NULL,
  `district_cn` varchar(255) default NULL,
  `education` varchar(255) default NULL,
  `education_cn` varchar(255) default NULL,
  `experience` varchar(255) default NULL,
  `experience_cn` varchar(255) default NULL,
  `current_id` varchar(255) default NULL,
  `current_cn` varchar(255) default NULL,
  `min_age` int(2) default NULL,
  `max_age` int(2) default NULL,
  `sex` tinyint(1) unsigned NOT NULL,
  `min_wage` int(5) default NULL,
  `max_wage` int(5) default NULL,
  `settr` int(5) default NULL,
  `settr_cn` varchar(255) default NULL,
  `addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||search_resume_engine表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_setmeal`;

CREATE TABLE `qs_setmeal` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `display` tinyint(1) unsigned NOT NULL default '1',
  `apply` tinyint(1) unsigned NOT NULL default '1',
  `setmeal_name` varchar(200) NOT NULL,
  `days` int(10) unsigned NOT NULL default '0',
  `expense` int(10) unsigned NOT NULL,
  `jobs_ordinary` int(10) unsigned NOT NULL default '0',
  `jobs_ordinary_porint_all` int(10) unsigned NOT NULL,
  `jobs_senior` int(10) unsigned NOT NULL,
  `jobs_senior_porint_all` int(10) unsigned NOT NULL,
  `jobs_entrust` int(10) unsigned NOT NULL,
  `jobs_entrust_porint_all` int(10) unsigned NOT NULL,
  `search_ordinary_resume` tinyint(1) unsigned NOT NULL,
  `see_ordinary_resume` int(10) unsigned NOT NULL,
  `down_ordinary_resume` int(10) unsigned NOT NULL default '0',
  `down_ordinary_resume_day` int(10) unsigned NOT NULL,
  `search_senior_reusme` tinyint(1) unsigned NOT NULL,
  `see_senior_resume` int(10) unsigned NOT NULL,
  `down_senior_resume` int(10) unsigned NOT NULL default '0',
  `down_senior_resume_day` int(10) unsigned NOT NULL,
  `interview_ordinary` int(10) unsigned NOT NULL default '0',
  `interview_senior` int(10) unsigned NOT NULL default '0',
  `account` int(10) unsigned NOT NULL,
  `company_web` tinyint(1) unsigned NOT NULL,
  `save_resume` tinyint(1) unsigned NOT NULL,
  `report_ordinary_resume` tinyint(1) unsigned NOT NULL,
  `report_senior_resume` tinyint(1) unsigned NOT NULL,
  `is_entrust_hunter` tinyint(1) unsigned NOT NULL,
  `added` varchar(255) NOT NULL,
  `show_order` int(10) unsigned NOT NULL default '0',
  `discount` decimal(10,1) NOT NULL,
  `index_ad` int(10) unsigned NOT NULL,
  `company_hot_show` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||setmeal表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_sms_config`;

CREATE TABLE `qs_sms_config` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||sms_config表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_sms_templates`;

CREATE TABLE `qs_sms_templates` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||sms_templates表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_syslog`;

CREATE TABLE `qs_syslog` (
  `l_id` int(10) unsigned NOT NULL auto_increment,
  `l_type` tinyint(1) unsigned NOT NULL,
  `l_type_name` varchar(30) NOT NULL,
  `l_time` int(10) unsigned NOT NULL,
  `l_ip` varchar(20) NOT NULL,
  `l_page` text NOT NULL,
  `l_str` text NOT NULL,
  PRIMARY KEY  (`l_id`)
) TYPE=MyISAM;

||-_-||syslog表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_text`;

CREATE TABLE `qs_text` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||text表创建成功！||-_-||

DROP TABLE IF EXISTS `qs_view_resume`;

CREATE TABLE `qs_view_resume` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `uid` varchar(100) NOT NULL,
  `utype` tinyint(1) unsigned NOT NULL,
  `talent` tinyint(1) unsigned NOT NULL,
  `resumeid` int(10) unsigned NOT NULL,
  `addtime` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

||-_-||view_resume表创建成功！||-_-||
