DROP TABLE IF EXISTS `admin`;
CREATE TABLE IF NOT EXISTS `admin` (id int(1) NOT NULL  auto_increment,username char(6) NOT NULL ,password varchar(32) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `bigclass_nav`;
CREATE TABLE IF NOT EXISTS `bigclass_nav` (id int(2) NOT NULL  auto_increment,yiid int(1) NULL ,erid int(2) NULL ,cname char(9) NOT NULL ,keywords varchar(17) NULL ,content int(704) NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `district`;
CREATE TABLE IF NOT EXISTS `district` (locationid int(1) NOT NULL ,districtid int(1) NOT NULL ,areacode char(1) NOT NULL ,zipcode char(6) NOT NULL ,districtname char(6) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `erclass_nav`;
CREATE TABLE IF NOT EXISTS `erclass_nav` (ErClassID int(1) NOT NULL  auto_increment,BigClassName char(8) NOT NULL ,ErClassName char(8) NOT NULL ,PRIMARY KEY  (`ErClassID`));
DROP TABLE IF EXISTS `foot`;
CREATE TABLE IF NOT EXISTS `foot` (id int(1) NOT NULL  auto_increment,content varchar(19) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `gonggao`;
CREATE TABLE IF NOT EXISTS `gonggao` (id int(1) NOT NULL  auto_increment,content varchar(112) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `link`;
CREATE TABLE IF NOT EXISTS `link` (id int(1) NOT NULL  auto_increment,name char(8) NOT NULL ,Address varchar(23) NOT NULL ,LOGO varchar(48) NOT NULL ,leixing char(8) NOT NULL ,paixu int(1) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `loaction`;
CREATE TABLE IF NOT EXISTS `loaction` (loactionid int(1) NOT NULL ,loactionname char(8) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `message`;
CREATE TABLE IF NOT EXISTS `message` (id int(1) NOT NULL  auto_increment,name char(4) NOT NULL ,phone int(3) NOT NULL ,other char(2) NULL ,E_mail char(2) NULL ,content int(21) NOT NULL ,shenhe char(2) NULL ,adddate int(10) NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `news`;
CREATE TABLE IF NOT EXISTS `news` (ID int(2) NOT NULL  auto_increment,yiid int(1) NULL ,erid int(1) NULL ,sanid int(2) NULL ,title varchar(77) NOT NULL ,jianjie varchar(176) NOT NULL ,content int(3476) NOT NULL ,img char(0) NOT NULL ,Home_t char(9) NULL ,Latest_t char(9) NULL ,adddate int(10) NOT NULL ,hits int(2) NOT NULL ,user char(0) NOT NULL ,PRIMARY KEY  (`ID`));
DROP TABLE IF EXISTS `product`;
CREATE TABLE IF NOT EXISTS `product` (id int(2) NOT NULL  auto_increment,Product_id char(0) NOT NULL ,yiid int(1) NULL ,erid int(1) NULL ,sanid int(1) NULL ,title char(6) NOT NULL ,spec char(0) NOT NULL ,price char(0) NOT NULL ,content int(6) NOT NULL ,img varchar(26) NOT NULL ,Home_t char(8) NOT NULL ,Latest_t char(8) NOT NULL ,adddate int(10) NOT NULL ,hits int(2) NOT NULL ,user char(0) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `sanclass_nav`;
CREATE TABLE IF NOT EXISTS `sanclass_nav` (SanClassID int(0) NOT NULL  auto_increment,BigClassName char(0) NOT NULL ,ErClassName char(0) NOT NULL ,SanClassName char(0) NOT NULL ,PRIMARY KEY  (`SanClassID`));
DROP TABLE IF EXISTS `template`;
CREATE TABLE IF NOT EXISTS `template` (tid int(1) NOT NULL  auto_increment,tdefault char(7) NOT NULL ,PRIMARY KEY  (`tid`));
DROP TABLE IF EXISTS `userinfo`;
CREATE TABLE IF NOT EXISTS `userinfo` (id int(1) NOT NULL  auto_increment,name char(4) NOT NULL ,password char(9) NOT NULL ,sex char(2) NULL ,E_mail varchar(16) NOT NULL ,QQ char(9) NULL ,MSN varchar(20) NULL ,phone varchar(11) NULL ,jihuo int(1) NULL ,adddate int(10) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `vote`;
CREATE TABLE IF NOT EXISTS `vote` (id int(1) NOT NULL  auto_increment,Votetitle char(4) NOT NULL ,totalnum int(2) NULL ,voteid int(1) NOT NULL ,PRIMARY KEY  (`id`));
DROP TABLE IF EXISTS `voteclass`;
CREATE TABLE IF NOT EXISTS `voteclass` (VoteID int(1) NOT NULL  auto_increment,VoteName varchar(27) NOT NULL ,class char(5) NOT NULL ,jihuo int(1) NOT NULL ,PRIMARY KEY  (`VoteID`));
DROP TABLE IF EXISTS `webinfo`;
CREATE TABLE IF NOT EXISTS `webinfo` (id int(1) NOT NULL  auto_increment,title varchar(24) NOT NULL ,description varchar(268) NOT NULL ,keywords varchar(26) NOT NULL ,url varchar(23) NULL ,logo varchar(14) NULL ,webname varchar(24) NULL ,phone varchar(24) NULL ,Email varchar(18) NULL ,ICP varchar(17) NULL ,PRIMARY KEY  (`id`));
