# --------------------------------------------------------
# 
# CuuMall商城系统 
# 
# http://www.CuuMall.com
# 
# CuuMall Version 2.3
# 
# --------------------------------------------------------

SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for mall_admin_login_log
-- ----------------------------
CREATE TABLE `mall_admin_login_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `logintime` datetime DEFAULT NULL  ,
  `loginip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `errorlog` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_adminrightgroup
-- ----------------------------
CREATE TABLE `mall_adminrightgroup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adgrouptitle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adright` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adgroupdisp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_adminuser
-- ----------------------------
CREATE TABLE `mall_adminuser` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adminuser` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adminpass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `admingroup` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adminemail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `addtime` datetime DEFAULT NULL  ,
  `loginip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `logintime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_analy
-- ----------------------------
CREATE TABLE `mall_analy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `vurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `vbtime` datetime DEFAULT NULL  ,
  `vetime` datetime DEFAULT NULL  ,
  `vrecours` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `newtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `careaa` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_book_id
-- ----------------------------
CREATE TABLE `mall_book_id` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_id` int(11) DEFAULT NULL  ,
  `type` int(11) DEFAULT NULL  ,
  `body` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `answer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `addtime` time DEFAULT NULL  ,
  `an_type` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_chg_account
-- ----------------------------
CREATE TABLE `mall_chg_account` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `changemine` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `money` float DEFAULT NULL  ,
  `jifen` int(11) DEFAULT NULL  ,
  `xiaofei` float DEFAULT NULL  ,
  `killmoney` float DEFAULT NULL  ,
  `addtime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_cuxiao
-- ----------------------------
CREATE TABLE `mall_cuxiao` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `tim` datetime DEFAULT NULL  ,
  `body` text COLLATE utf8_unicode_ci  ,
  `show_s` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `starttime` datetime DEFAULT NULL  ,
  `startendtime` datetime DEFAULT NULL  ,
  `updown` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_getmoney
-- ----------------------------
CREATE TABLE `mall_getmoney` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `money` float DEFAULT NULL  ,
  `paytype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `moneytype` int(11) DEFAULT NULL  ,
  `adbody` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `membody` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `moneystate` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_guanggao
-- ----------------------------
CREATE TABLE `mall_guanggao` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `p_width` int(11) DEFAULT NULL  ,
  `p_height` int(11) DEFAULT NULL  ,
  `p_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `p_begintime` datetime DEFAULT NULL  ,
  `p_edtime` datetime DEFAULT NULL  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `state` int(11) DEFAULT NULL  ,
  `p_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `p_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `p_tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `p_addtim` datetime DEFAULT NULL  ,
  `main_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT '0'  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_img
-- ----------------------------
CREATE TABLE `mall_img` (
  `id` int(11) NOT NULL AUTO_INCREMENT  ,
  `picid` int(11) DEFAULT NULL  ,
  `imgpic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `imgurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `imgname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `imgtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_lanmu_main
-- ----------------------------
CREATE TABLE `mall_lanmu_main` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `f_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `unix` int(11) DEFAULT NULL  ,
  `show_s` int(11) DEFAULT NULL  ,
  `index_s` int(11) DEFAULT NULL  ,
  `key_word` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `discp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `key_flag` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'main'  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_lanmu_one
-- ----------------------------
CREATE TABLE `mall_lanmu_one` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) DEFAULT NULL  ,
  `f_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `unix` int(11) DEFAULT NULL  ,
  `show_s` int(11) DEFAULT NULL  ,
  `key_word` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `discp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `key_flag` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'one',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_lanmu_two
-- ----------------------------
CREATE TABLE `mall_lanmu_two` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `class_id` int(11) DEFAULT NULL  ,
  `f_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `f_class_id` int(11) DEFAULT NULL  ,
  `unix` int(11) DEFAULT NULL  ,
  `show_s` int(11) DEFAULT NULL  ,
  `key_word` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `discp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `key_flag` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'two',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_link
-- ----------------------------
CREATE TABLE `mall_link` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `linkname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `linkurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `unixtm` int(11) DEFAULT NULL  ,
  `linklogo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adtime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_lunbo
-- ----------------------------
CREATE TABLE `mall_lunbo` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `lunbopic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `lunbourl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `discp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `unixtim` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_add
-- ----------------------------
CREATE TABLE `mall_m_add` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `pruid` int(11) DEFAULT NULL  ,
  `addtime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_bakapply
-- ----------------------------
CREATE TABLE `mall_m_bakapply` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `orderid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `applybody` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `applytime` datetime DEFAULT NULL  ,
  `adminbak` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `admintime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_card
-- ----------------------------
CREATE TABLE `mall_m_card` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `cardname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `cardmoney` float DEFAULT '0'  ,
  `state` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_daixiao
-- ----------------------------
CREATE TABLE `mall_m_daixiao` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `realname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `sex` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `shen` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `shi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `qu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `addr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `mob` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `qq` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ww` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `quanzhi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `taobaoname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `taobaourl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `taobaoxinyu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `taobaotype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paipainame` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paipaiurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paipaixinyu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paipaitype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `yiquname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `yiquurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `yiquxinyu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `yiqutype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zijianname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zijianurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zijiantype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `othername` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `otherurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `othertype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `shitiname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `shitiurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `shititype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_group
-- ----------------------------
CREATE TABLE `mall_m_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `grouptitle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `jifenlow` int(11) DEFAULT NULL  ,
  `jifenhigh` int(11) DEFAULT NULL  ,
  `spec` int(11) DEFAULT '0'  ,
  `zhekou` int(11) DEFAULT '100'  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_kuaidi
-- ----------------------------
CREATE TABLE `mall_m_kuaidi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `kuaidiname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `kuaidimoney` double DEFAULT NULL  ,
  `kuaididisc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `kuaidiurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_level
-- ----------------------------
CREATE TABLE `mall_m_level` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `levelname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `lowjifen` int(11) DEFAULT NULL  ,
  `highjifen` int(11) DEFAULT NULL  ,
  `rebate` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_loginlog
-- ----------------------------
CREATE TABLE `mall_m_loginlog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `logintime` datetime DEFAULT NULL  ,
  `loginip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_member
-- ----------------------------
CREATE TABLE `mall_m_member` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `stat` int(11) DEFAULT NULL  ,
  `money` float DEFAULT '0'  ,
  `jifen` int(11) DEFAULT '0'  ,
  `xiaofei` float DEFAULT '0'  ,
  `killmoney` float DEFAULT '0'  ,
  `regtime` datetime DEFAULT NULL  ,
  `regip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `mailstate` int(11) DEFAULT '0'  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_order
-- ----------------------------
CREATE TABLE `mall_m_order` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outordernum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `outordertime` datetime DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `rejproid` int(11) DEFAULT NULL  ,
  `kuaidid` int(11) DEFAULT NULL  ,
  `zhifuid` int(11) DEFAULT NULL  ,
  `pruser` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `price` float DEFAULT NULL  ,
  `orderid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `ordertime` datetime DEFAULT NULL  ,
  `orderstate` int(11) DEFAULT '0'  ,
  `endtime` datetime DEFAULT NULL  ,
  `jifen` int(11) DEFAULT '0'  ,
  `bakk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `fapiao` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paytime` datetime DEFAULT NULL  ,
  `fhtime` datetime DEFAULT NULL  ,
  `fhnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adbakk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `baojia` int(11) DEFAULT NULL  ,
  `baojiaomoney` float DEFAULT NULL  ,
  `outbakk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `suretime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_pay
-- ----------------------------
CREATE TABLE `mall_m_pay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ordernum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `trade_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paytype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paymoney` float DEFAULT '0'  ,
  `payallmoney` float DEFAULT NULL  ,
  `dotime` datetime DEFAULT NULL  ,
  `paystate` int(11) DEFAULT '0'  ,
  `gettime` datetime DEFAULT NULL  ,
  `beizu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_per
-- ----------------------------
CREATE TABLE `mall_m_per` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) DEFAULT NULL ,
  `shen` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `shi` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `qu` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `sex` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `realname` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `more` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `youbian` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `mob` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `qq` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  `ww` varchar(255) COLLATE utf8_unicode_ci DEFAULT ''  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_rejpro
-- ----------------------------
CREATE TABLE `mall_m_rejpro` (
  `id` int(11) NOT NULL AUTO_INCREMENT  ,
  `uid` int(11) DEFAULT NULL,
  `shen` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `shi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `qu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `rejname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `mob` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `youbian` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `more` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `qq` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `ww` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_m_suggest
-- ----------------------------
CREATE TABLE `mall_m_suggest` (
  `id` int(11) NOT NULL AUTO_INCREMENT  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ,
  `uptime` datetime DEFAULT NULL  ,
  `adstate` int(11) DEFAULT '0'  ,
  `adrepbody` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adreptime` datetime DEFAULT NULL  ,
  `body` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_news
-- ----------------------------
CREATE TABLE `mall_news` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `tim` datetime DEFAULT NULL  ,
  `body` text COLLATE utf8_unicode_ci  ,
  `types` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `show_s` int(255) DEFAULT NULL  ,
  `index_s` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_news_type
-- ----------------------------
CREATE TABLE `mall_news_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `typename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `typedisp` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `unixtm` int(11) DEFAULT NULL  ,
  `show_s` int(11) DEFAULT NULL  ,
  `addtime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_orderlack
-- ----------------------------
CREATE TABLE `mall_orderlack` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `proid` int(11) DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `addtime` datetime DEFAULT NULL  ,
  `proname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `num` int(11) DEFAULT '0'  ,
  `body` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `conname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `state` int(11) DEFAULT '0'  ,
  `admin_user` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `admin_time` datetime DEFAULT NULL  ,
  `admin_bak` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_out_order
-- ----------------------------
CREATE TABLE `mall_out_order` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outordernum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `outordertime` datetime DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `rejproid` int(11) DEFAULT NULL  ,
  `kuaidid` int(11) DEFAULT NULL  ,
  `zhifuid` int(11) DEFAULT NULL  ,
  `pruser` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `price` float DEFAULT NULL  ,
  `orderid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `ordertime` datetime DEFAULT NULL  ,
  `orderstate` int(11) DEFAULT '0'  ,
  `endtime` datetime DEFAULT NULL  ,
  `jifen` int(11) DEFAULT NULL  ,
  `bakk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `fapiao` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `paytime` datetime DEFAULT NULL  ,
  `fhtime` datetime DEFAULT NULL  ,
  `fhnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `baojia` int(11) DEFAULT NULL  ,
  `baojiaomoney` float DEFAULT NULL  ,
  `outordernumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adbakk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `outbakk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_out_order11111
-- ----------------------------
CREATE TABLE `mall_out_order11111` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `outordernum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `outordertime` datetime DEFAULT NULL  ,
  `ordernum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `ordertime` datetime DEFAULT NULL  ,
  `orderuser` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `wuliu` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `wuliumoney` float DEFAULT NULL  ,
  `baojia` int(11) DEFAULT NULL  ,
  `baojiaomoney` float DEFAULT NULL  ,
  `outordernumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `sendname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `state` int(11) DEFAULT '0'  ,
  `backtime` datetime DEFAULT NULL  ,
  `pruser` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_paytype
-- ----------------------------
CREATE TABLE `mall_paytype` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `typename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `state` int(11) DEFAULT '1'  ,
  `flag` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `sendurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `img` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_pic
-- ----------------------------
CREATE TABLE `mall_pic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `xian` int(11) DEFAULT NULL  ,
  `adtime` time DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_pinpai
-- ----------------------------
CREATE TABLE `mall_pinpai` (
  `id` int(11) NOT NULL AUTO_INCREMENT  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `pic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `disc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `show_s` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_pl_id
-- ----------------------------
CREATE TABLE `mall_pl_id` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_id` int(11) DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `body` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `pingfen` int(11) DEFAULT NULL  ,
  `jieshi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `pltime` datetime DEFAULT NULL  ,
  `pltype` int(11) DEFAULT NULL  ,
  `ip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `show_s` int(11) DEFAULT '0'  ,
  `adminrep` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `reptime` datetime DEFAULT NULL  ,
  `adminip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `lmmain` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_pric_id
-- ----------------------------
CREATE TABLE `mall_pric_id` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_id` int(11) DEFAULT NULL  ,
  `body` text COLLATE utf8_unicode_ci  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_produc
-- ----------------------------
CREATE TABLE `mall_produc` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `main_class_id` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `one_class_id` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `two_class_id` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `numb` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `smallimg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `price` float DEFAULT NULL  ,
  `memprice` float DEFAULT NULL  ,
  `kucun` int(11) DEFAULT NULL  ,
  `shouchu` int(11) DEFAULT '0'  ,
  `jifen` int(11) DEFAULT '0'  ,
  `body` text COLLATE utf8_unicode_ci  ,
  `pingfen` int(11) DEFAULT '0'  ,
  `main_new` int(11) DEFAULT '0'  ,
  `main_hot` int(11) DEFAULT '0'  ,
  `lanmu_new` int(11) DEFAULT '0'  ,
  `lanmu_hot` int(11) DEFAULT '0'  ,
  `yanse` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ,
  `guige` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ,
  `main_ding` int(11) DEFAULT '0'  ,
  `attrid` int(11) DEFAULT NULL  ,
  `picid` int(11) DEFAULT NULL  ,
  `pricid` int(11) DEFAULT NULL  ,
  `sellid` int(11) DEFAULT NULL  ,
  `zixunid` int(11) DEFAULT NULL  ,
  `plid` int(11) DEFAULT NULL  ,
  `addtime` datetime DEFAULT NULL  ,
  `scstate` int(11) DEFAULT '0'  ,
  `addintime` datetime DEFAULT NULL  ,
  `downtime` datetime DEFAULT NULL  ,
  `promid` int(11) DEFAULT NULL  ,
  `promprice` float DEFAULT NULL  ,
  `promstarttime` datetime DEFAULT NULL  ,
  `promendtime` datetime DEFAULT NULL  ,
  `promstate` int(11) DEFAULT NULL  ,
  `statetype` int(11) DEFAULT '0'  ,
  `pinpai` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_produc_rec
-- ----------------------------
CREATE TABLE `mall_produc_rec` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `main_class_id` int(11) DEFAULT NULL  ,
  `one_class_id` int(11) DEFAULT NULL  ,
  `two_class_id` int(11) DEFAULT NULL  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `smallimg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `price` float DEFAULT NULL  ,
  `memprice` float DEFAULT NULL  ,
  `kucun` int(11) DEFAULT NULL  ,
  `shouchu` int(11) DEFAULT NULL  ,
  `jifen` int(11) DEFAULT NULL  ,
  `pingfen` int(11) DEFAULT NULL  ,
  `main_new` int(11) DEFAULT NULL  ,
  `main_hot` int(11) DEFAULT NULL  ,
  `lanmu_new` int(11) DEFAULT NULL  ,
  `lanmu_hot` int(11) DEFAULT NULL  ,
  `main_ding` int(11) DEFAULT NULL  ,
  `attrid` int(11) DEFAULT NULL  ,
  `picid` int(11) DEFAULT NULL  ,
  `pricid` int(11) DEFAULT NULL  ,
  `sellid` int(11) DEFAULT NULL  ,
  `zixunid` int(11) DEFAULT NULL  ,
  `plid` int(11) DEFAULT NULL  ,
  `addtime` datetime DEFAULT NULL  ,
  `scstate` int(11) DEFAULT NULL  ,
  `addintime` datetime DEFAULT NULL  ,
  `downtime` datetime DEFAULT NULL  ,
  `promid` int(11) DEFAULT NULL  ,
  `promprice` float DEFAULT NULL  ,
  `promstarttime` datetime DEFAULT NULL  ,
  `promendtime` datetime DEFAULT NULL  ,
  `promstate` int(11) DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_prom_id
-- ----------------------------
CREATE TABLE `mall_prom_id` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `proid` int(11) DEFAULT NULL  ,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `tim` datetime DEFAULT NULL  ,
  `body` text COLLATE utf8_unicode_ci  ,
  `unixpx` int(11) DEFAULT NULL  ,
  `show_s` varchar(255) COLLATE utf8_unicode_ci DEFAULT '0'  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_search_name
-- ----------------------------
CREATE TABLE `mall_search_name` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `s_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `unix` int(11) DEFAULT NULL  ,
  `surl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `adtime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_sell_id
-- ----------------------------
CREATE TABLE `mall_sell_id` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_id` int(11) DEFAULT NULL  ,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `buynumber` int(11) DEFAULT NULL  ,
  `buytime` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_send_mail
-- ----------------------------
CREATE TABLE `mall_send_mail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `sendtime` datetime DEFAULT NULL  ,
  `sendtitle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `sendbody` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_suggest
-- ----------------------------
CREATE TABLE `mall_suggest` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ,
  `body` text COLLATE utf8_unicode_ci ,
  `tel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `addtime` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ,
  `addip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Table structure for mall_wuliu
-- ----------------------------
CREATE TABLE `mall_wuliu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `money` float DEFAULT NULL  ,
  `bak` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `state` int(11) DEFAULT '1'  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_zixun_id
-- ----------------------------
CREATE TABLE `mall_zixun_id` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pro_id` int(11) DEFAULT NULL  ,
  `zx_username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zx_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zx_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zx_body` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `zx_time` datetime DEFAULT NULL  ,
  `ad_username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `ad_answer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL  ,
  `ad_time` datetime DEFAULT NULL  ,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Table structure for mall_zthink_access
-- ----------------------------
CREATE TABLE `mall_zthink_access` (
  `role_id` smallint(6) unsigned NOT NULL,
  `node_id` smallint(6) unsigned NOT NULL,
  `level` tinyint(1) NOT NULL,
  `module` varchar(50) DEFAULT NULL,
  KEY `groupId` (`role_id`),
  KEY `nodeId` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for mall_zthink_node
-- ----------------------------
CREATE TABLE `mall_zthink_node` (
  `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `title` varchar(50) DEFAULT NULL,
  `status` tinyint(1) DEFAULT '0',
  `remark` varchar(255) DEFAULT NULL,
  `sort` smallint(6) unsigned DEFAULT NULL,
  `pid` smallint(6) unsigned NOT NULL,
  `level` tinyint(1) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `level` (`level`),
  KEY `pid` (`pid`),
  KEY `status` (`status`),
  KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for mall_zthink_role
-- ----------------------------
CREATE TABLE `mall_zthink_role` (
  `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `pid` smallint(6) DEFAULT NULL,
  `status` tinyint(1) unsigned DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pid` (`pid`),
  KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for mall_zthink_role_user
-- ----------------------------
CREATE TABLE `mall_zthink_role_user` (
  `role_id` mediumint(9) unsigned DEFAULT NULL,
  `user_id` char(32) DEFAULT NULL,
  KEY `group_id` (`role_id`),
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;