 CREATE TABLE guestbook ([ID] int IDENTITY (1, 1) NOT NULL CONSTRAINT PrimaryKey PRIMARY KEY,[name] nvarchar(20) null ,[QQ] nvarchar(50) null,[email] nvarchar(50) null,[content] ntext null,[time] datetime null,[reply] ntext null,[select] nvarchar(50) null,[face] nvarchar(50) null,[ip] nvarchar(50) null,[show] int Default 0,[title] nvarchar(255) null,[isadmin] int Default 0,[tel] int null )
 CREATE TABLE KX_Ad ([a_id] int IDENTITY (1, 1)  NOT NULL  CONSTRAINT PrimaryKey PRIMARY KEY,[a_info] nvarchar(100) null ,[a_pic] nvarchar(100) null ,[a_size] nvarchar(10) Default '0|0' ,[a_url] nvarchar(100) null ,[a_fontcolor] nvarchar(7) null ,[a_category] nvarchar(255) null ,[a_type] int Default 0 ,[a_state] int Default 0 ,[a_hits] int Default 0 ,[a_date] datetime Default Now() ,[a_days] int Default 0 ,[a_tag] nvarchar(20) null )
 CREATE TABLE KX_admin_log ([l_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[l_name] nvarchar(20) null ,[l_logintime] datetime null ,[l_loginip] nvarchar(20) null )
 CREATE TABLE KX_adminuser ([ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[admin_name] nvarchar(50) null ,[admin_pass] nvarchar(50) null ,[flag] ntext null ,[lastloginip] nvarchar(255) null ,[lastlogin] datetime null ,[acceptip] nvarchar(255) null ,[logins] integer Default 0 ,[a_state] integer Default 0 ,[pflag] integer Default 0 )
 CREATE TABLE KX_city ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[area_name] nvarchar(50) null ,[parent_id] integer Default 0 ,[area_order] integer Default 0 ,[money] nvarchar(50) null ,[area_txt] nvarchar(255) null ,[area_url] nvarchar(100) null ,[area_add] nvarchar(255) null )
 CREATE TABLE KX_city_list ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[area_id] integer Default 0 ,[deliver_id] integer Default 0 ,[d_order] integer Default 0 )
 CREATE TABLE KX_Cuser ([ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[com_userid] nvarchar(255) null ,[com_name] nvarchar(255) ,[com_Uname] nvarchar(255) ,[com_phone] nvarchar(255) ,[com_class] integer ,[com_pass] nvarchar(255) null ,[com_email] nvarchar(255) null ,[com_city] integer null ,[com_city2] integer null ,[com_hy] integer null ,[com_remark] ntext null ,[com_addree] nvarchar(255) null ,[com_regtime] datetime null ,[com_Gtime] datetime null ,[com_Etime] datetime null ,[com_Num] integer null ,[com_tel] nvarchar(255) null ,[com_Lock] integer null ) 
 CREATE TABLE KX_engineer ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[deliver_name] nvarchar(50) null ,[deliver_price] nvarchar(100) null ,[deliver_info] ntext null )
 CREATE TABLE KX_Event ([e_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[e_type] integer Default 0 )
 CREATE TABLE KX_gg ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[gg_s1] nvarchar(255) null ,[gg_s1url] nvarchar(255) null ,[gg_s2] nvarchar(255) null ,[gg_s2url] nvarchar(255) null ,[gg_s3] nvarchar(255) null ,[gg_s3url] nvarchar(255) null ,[gg_s4] nvarchar(255) null ,[gg_s4url] nvarchar(255) null ,[gg_tj] nvarchar(255) null ,[gg_tjurl] nvarchar(255) null ,[ifggtj] integer null ,[ifggtop] integer null ,[ggtop_url] nvarchar(255) null ,[ggtop] nvarchar(255) null ,[gg1_w] nvarchar(10) null ,[gg1_h] nvarchar(10) null ,[ggtop_w] nvarchar(10) null ,[ggtop_h] nvarchar(10) null ,[ggtj_w] nvarchar(10) null ,[ggtj_h] nvarchar(10) null )
 CREATE TABLE KX_gzsm ([c_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[c_name] nvarchar(20) null ,[c_paixu] integer null )
 CREATE TABLE KX_help ([ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[subject] nvarchar(100) null ,[message] ntext null ,[idate] datetime null ,[syxs] integer Default 0 ,[newstype] nvarchar(20) null ,[hits] integer Default 0 ,[image] nvarchar(50) null ,[type_id] integer Default 0 ,[strcolor] nvarchar(255) null )
 CREATE TABLE KX_helptype ([type_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[newstype] nvarchar(20) null ,[n_order] integer Default 0 )
 CREATE TABLE KX_huoban ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[url] nvarchar(50) null ,[wordlink] nvarchar(50) null ,[xs] integer Default 0 ,[bs] integer Default 0 ,[logo] nvarchar(50) null ,[show] integer Default 0)
 CREATE TABLE KX_lshy ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[basket_date] datetime null ,[sessionid] integer null ,[coupon_num] nvarchar(16) null )
 CREATE TABLE KX_manage_log ([l_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[l_name] nvarchar(20) null ,[l_time] datetime null ,[l_info] nvarchar(100) null ,[l_url] nvarchar(100) null ) 
 CREATE TABLE KX_money_log ([m_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[m_user_id] nvarchar(20) null ,[m_price] float Default 0 ,[m_content] nvarchar(255) null ,[m_username] nvarchar(30) null ,[m_sj] datetime Default now() ,[m_type] nvarchar(50) null ,[m_zt] integer Default 0 )
 CREATE TABLE KX_news ([ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[title] nvarchar(50) null ,[content] ntext null ,[infotime] datetime null ,[hits] integer Default 0 ,[pic] integer Default 0 ,[n_tj] integer Default 0 ,[html] integer Default 0,[content_view] ntext null ,[n_linenum] integer Default 0 ,[n_product] nvarchar(150) null ,[n_from] nvarchar(20) null ,[webhead] ntext null ,[classid] nvarchar(100) null ,[pic_src] nvarchar(255) null ,[strcolor] nvarchar(12) null ,[sources] nvarchar(50) null ,[n_top] integer Default 0 )
 CREATE TABLE KX_newsclass([ClassID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[ClassName] nvarchar(30) null ,[b_order] integer Default 0 ,[ParentID] integer Default 0 )
 CREATE TABLE KX_newssources ([n_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[n_name] nvarchar(20) null ,[n_order] integer Default 0 ) 
 CREATE TABLE KX_orders ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[user_id] integer null ,[to_name] nvarchar(30) null ,[order_number] nvarchar(18) null ,[order_time] datetime null ,[paymenttype] integer Default 0,[sendtype] nvarchar(20) null ,[to_adds] nvarchar(100) null ,[totalcash] money null ,[complete_time] datetime null ,[jifen] float null ,[fuyan] ntext null ,[orderzt] integer Default 0 ,[order_type] integer null ,[gz] integer null ,[sex] integer null ,[coupon_price] float Default 0 ,[city] integer null ,[city2] integer null ,[from_tel] nvarchar(50) null ,[remark4] nvarchar(100) null ,[remark3] nvarchar(100) null ,[remark2] nvarchar(100) null ,[remark] nvarchar(100) null ,[mark] integer Default 0,[is_jifen] integer Default 0,[order_ip] nvarchar(255) null ,[discount] float null ,[tel] nvarchar(255) null ,[yy_date] datetime null ,[yy_shour] nvarchar(255) null ,[yy_sminute] nvarchar(255) null ,[o_qb] integer Default 0 ,[lxname] nvarchar(255) null ,[remark5] nvarchar(255) null ,[hf_time] datetime null ,[star] integer null ,[hf_class] integer null ,[hf_zt] integer Default 0 )
 CREATE TABLE KX_Orders_Log ([l_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[l_name] nvarchar(50) null ,[l_content] nvarchar(200) null ,[l_time] datetime null ,[l_order_number] nvarchar(50) null ,[discount] integer null )
 CREATE TABLE KX_ordertel ([t_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[t_name] nvarchar(50) null ,[t_add] nvarchar(255) null ,[t_tel] nvarchar(50) null ,[dates] datetime null ,[t_biaozhi] nvarchar(50) null ,[istate] integer Default 0 ,[user_name] nvarchar(250) null ,[rmb] float null ) 
 CREATE TABLE KX_Phone_log ([ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[P_txt] nvarchar(255) null ,[P_phone] nvarchar(255) null ,[P_type] integer null ,[P_time] datetime null )
 CREATE TABLE KX_pinpai ([P_ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[P_Name] nvarchar(255) null ,[P_img] nvarchar(255) null ,[P_order] integer null )
 CREATE TABLE KX_qq ([q_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[q_s_id] integer null ,[q_name] nvarchar(20) null ,[q_face] nvarchar(255) null ,[q_paixu] integer Default 0 ,[q_num] integer Default 0 )
 CREATE TABLE KX_qq_sort ([q_s_id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[q_s_name] nvarchar(20) null ,[q_s_paixu] integer Default 0 )
 CREATE TABLE KX_system ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[name] nvarchar(100) null ,[mail] nvarchar(50) null ,[web] nvarchar(50) null ,[sitename] nvarchar(255) null ,[fax] nvarchar(50) null ,[code] nvarchar(50) null ,[info] ntext null , [sys_tel] nvarchar(50) null ,[sys_oicq] nvarchar(255) null ,[lockip] ntext null ,[sys_Upload] nvarchar(255) Default '$$$$$$$$$$$$$' , [sys_Jmail] nvarchar(200) Default '$$$$$$$$$$$$$' ,[sys_Setup] nvarchar(200) Default '$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$' ,[sys_keywords] nvarchar(200) null ,[sys_description] nvarchar(200) null ,[sys_help_content] ntext null ,[sys_logo] nvarchar(100) null ,[word_filter] ntext null ,[RunMode] integer Default 0 ,[lock] integer Default 0 ,[sys_sms] nvarchar(200) null ,[ICP] nvarchar(255) null ,[sys_fwfw] ntext null ,[sys_fwgf] ntext null ,[sys_sfbz] ntext null ,[sys_sms_s] integer null ,[SMS_User] nvarchar(255) null ,[SMS_Pass] nvarchar(255) null  )
 CREATE TABLE KX_user ([ID] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[user_id] nvarchar(20) null ,[user_password] nvarchar(20) null ,[user_name] nvarchar(20) not null ,[city] nvarchar(10) null ,[city2] nvarchar(255) null ,[oicq] nvarchar(10) null ,[user_mail] nvarchar(50) null ,[tel] nvarchar(20) null ,[user_postalcode] nvarchar(10) null ,[user_adds] nvarchar(50) null ,[sex] nvarchar(4) null ,[user_tel] nvarchar(20) not null ,[user_grade] integer Default 0 ,[regdate] datetime null ,[regip] nvarchar(20) null ,[logins] integer Default 0 ,[lastlogintime] datetime null ,[lastloginIP] nvarchar(20) null ,[jifen] float Default 0 ,[yxq] datetime null ,[summoney] money null ,[lock] integer Default 0 ,[usermoney] money Default 0 ,[locksj] datetime null ,[sumpay] money Default 0 ,[shenqing] integer Default 0,[sfz] nvarchar(20) null ,[update_grade_time] datetime Default Now() ,[ifpay] integer Default 0 ,[user_mobile] nvarchar(20) null ,[birthday] nvarchar(20) null ,[user_remark] nvarchar(255) null ) 
 CREATE TABLE KX_user_grade ([id] integer IDENTITY (1,1) not null CONSTRAINT PrimaryKey PRIMARY KEY,[grade_name] nvarchar(20) null ,[grade_dj] integer Default 0 ,[price_txt] nvarchar(20) null ,[gw_jifen] float Default 0 ,[grade_ico] nvarchar(50) null ,[discount] float null )