CREATE TABLE [sd_config]([setname] nvarchar(50) NULL,[setkey] nvarchar(50) NULL,[setvalue] ntext NULL) 
CREATE TABLE [sd_admin]([adminid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[adminname] nvarchar(20) NULL,[adminpass] nvarchar(20) NULL,[groupid] int NULL,[penname] nvarchar(50) NULL,[logintimes] int NULL,[islock] int NULL,[lastlogindate] datetime NULL,[lastloginip] nvarchar(15) NULL,[openid] nvarchar(255) NULL)
CREATE TABLE [sd_admin_group]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[groupname] nvarchar(50) NULL,[groupdesc] nvarchar(50) NULL,[pagelever] ntext NULL,[catearray] ntext NULL,[catelever] ntext NULL,[createdate] datetime NULL)
CREATE TABLE [sd_admin_menu]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(50) NULL,[url] nvarchar(255) NULL,[followid] int NULL,[menuid] int NULL,[ordnum] int NULL,[islock] int NULL)
CREATE TABLE [sd_attachment]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[cid] int NULL,[classid] int NULL,[fullname] nvarchar(255) NULL,[filepath] nvarchar(255) NULL,[filename] nvarchar(255) NULL,[filesize] nvarchar(255) NULL,[oldname] nvarchar(255) NULL,[fileext] nvarchar(50) NULL,[ispic] int NULL,[createip] nvarchar(50) NULL,[createdate] datetime NULL,[adminid] int NULL,[userid] int NULL) 
CREATE TABLE [sd_category]([cateid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[catename] nvarchar(50) NULL,[catedir] nvarchar(255) NULL,[followid] int NULL,[depth] int NULL,[sonid] ntext NULL,[parentid] ntext NULL,[ordnum] int NULL,[ismenu] int NULL,[catepic] nvarchar(255) NULL,[seotitle] nvarchar(255) NULL,[catekey] nvarchar(255) NULL,[catedesc] ntext NULL,[cateurl] nvarchar(255) NULL,[modeid] int NULL,[pagenum] int NULL,[cate_list] nvarchar(255) NULL,[cate_show] nvarchar(255) NULL,[domain] nvarchar(255) NULL,[urlrule] nvarchar(50) NULL,[allowpost] int NULL)
CREATE TABLE [sd_content]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[classid] int NULL,[title] nvarchar(255) NULL,[createdate] datetime NULL,[lastupdate] datetime NULL,[author] nvarchar(50) NULL,[comefrom] nvarchar(50) NULL,[hits] int NULL,[style] nvarchar(255) NULL,[pic] nvarchar(255) NULL,[ispic] int NULL,[tags] nvarchar(255) NULL,[url] nvarchar(255) NULL,[isurl] int NULL,[keyword] nvarchar(255) NULL,[description] nvarchar(255) NULL,[intro] ntext NULL,[islock] int NULL,[isnice] int NULL,[ontop] int NULL,[iscomment] int NULL,[likeid] nvarchar(255) NULL,[comments] int NULL,[adminid] int NULL,[userid] int NULL,[point] int NULL)
CREATE TABLE [sd_expand_ad]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(50) NULL,[classid] int NULL,[islock] int NULL,[ordnum] int NULL,[adtype] int NULL,[text] nvarchar(255) NULL,[url] nvarchar(255) NULL,[style] nvarchar(255) NULL,[fileurl] nvarchar(255) NULL,[width] int NULL,[height] int NULL,[code] ntext NULL,[begindate] datetime NULL,[overdate] datetime NULL,[note] ntext NULL)
CREATE TABLE [sd_expand_book]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[username] nvarchar(50) NULL,[userid] int NULL,[avatar] nvarchar(255) NULL,[sex] nvarchar(50) NULL,[tel] nvarchar(50) NULL,[content] ntext NULL,[reply] ntext NULL,[createdate] datetime NULL,[replydate] datetime NULL,[islock] int NULL,[postip] nvarchar(50) NULL) 
CREATE TABLE [sd_expand_class]([classid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[classname] nvarchar(50) NULL,[followid] int NULL,[ordnum] int NULL) 
CREATE TABLE [sd_expand_comment]([commentid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[contentid] int NULL,[username] nvarchar(50) NULL,[userid] int NULL,[avatar] int NULL,[content] ntext NULL,[reply] ntext NULL,[createdate] datetime NULL,[replydate] datetime NULL,[islock] int NULL,[followid] int NULL,[postip] nvarchar(50) NULL)
CREATE TABLE [sd_expand_keyword]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(50) NULL,[hits] int NULL,[islock] int NULL)
CREATE TABLE [sd_expand_link]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[webname] nvarchar(50) NULL,[weburl] nvarchar(255) NULL,[weblogo] nvarchar(255) NULL,[islogo] int NULL,[classid] int NULL,[islock] int NULL)
CREATE TABLE [sd_expand_mood]([moodid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[contentid] int NULL,[moodtype] int NULL,[moodnum] int NULL)
CREATE TABLE [sd_expand_siteLink]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(50) NULL,[intro] nvarchar(255) NULL,[siteurl] nvarchar(255) NULL,[ordnum] int NULL,[replacenum] int NULL,[linktype] int NULL,[islock] int NULL)
CREATE TABLE [sd_expand_tags]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(50) NULL,[hits] int NULL,[style] nvarchar(255) NULL)
CREATE TABLE [sd_expand_vote]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(255) NULL,[votetype] int NULL,[voteitem] ntext NULL,[voteresult] ntext NULL,[votepercent] ntext NULL,[totalnum] int NULL,[islock] int NULL)
CREATE TABLE [sd_model]([modelid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[modelname] nvarchar(255) NULL,[tablename] nvarchar(255) NULL,[modeldesc] nvarchar(255) NULL,[adminurl] nvarchar(255) NULL,[islock] int NULL,[default_temp] nvarchar(255) NULL,[list_temp] nvarchar(255) NULL,[show_temp] nvarchar(255) NULL,[admin_add_temp] nvarchar(255) NULL,[admin_edit_temp] nvarchar(255) NULL,[admin_publish_temp] nvarchar(255) NULL,[pre_publish_temp] nvarchar(255) NULL,[pre_publish_url] nvarchar(255) NULL)
CREATE TABLE [sd_model_news]([newsid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[cid] int NULL,[content] ntext NULL)
CREATE TABLE [sd_model_page]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[classid] int NULL,[content] ntext NULL)
CREATE TABLE [sd_model_down]([downid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[cid] int NULL,[version] nvarchar(50) NULL,[softsize] nvarchar(50) NULL,[sizeunit] nvarchar(255) NULL,[language] nvarchar(50) NULL,[license] nvarchar(50) NULL,[property] nvarchar(255) NULL,[os] nvarchar(50) NULL,[devlanguage] nvarchar(255) NULL,[database] nvarchar(50) NULL,[developers] nvarchar(50) NULL,[developerurl] nvarchar(255) NULL,[demourl] nvarchar(255) NULL,[stars] int NULL,[downway] ntext NULL,[downurl] ntext NULL,[content] ntext NULL)
CREATE TABLE [sd_model_photo]([photoid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[cid] int NULL,[piclist] ntext NULL,[content] ntext NULL,[introlist] ntext NULL)
CREATE TABLE [sd_model_video]([videoid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[cid] int NULL,[playtime] nvarchar(50) NULL,[video] nvarchar(255) NULL,[vtype] nvarchar(50) NULL,[content] ntext NULL)
CREATE TABLE [sd_user]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[username] nvarchar(20) NULL,[password] nvarchar(50) NULL,[nickname] nvarchar(10) NULL,[email] nvarchar(50) NULL,[groupid] int NULL,[islock] int NULL,[createdate] datetime NULL,[createip] nvarchar(50) NULL,[lastlogindate] datetime NULL,[lastloginip] nvarchar(50) NULL,[logintimes] int NULL,[avatar] int NULL,[amount] money NULL,[point] int NULL,[percent] int NULL,[isvip] int NULL,[overdate] int NULL,[somecode] nvarchar(50) NULL,[remark] nvarchar(255) NULL)
CREATE TABLE [sd_user_bind]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[userid] int NULL,[openid] nvarchar(255) NULL,[opentype] nvarchar(50) NULL)
CREATE TABLE [sd_user_buy]([buyid] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[contentid] int NULL,[point] int NULL,[userid] int NULL,[createdate] datetime NULL,[lastupdate] datetime NULL)
CREATE TABLE [sd_user_data]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[userid] int NULL,[truename] nvarchar(50) NULL,[sex] int NULL,[birthday] datetime NULL,[mobile] nvarchar(50) NULL,[tel] nvarchar(50) NULL,[qq] nvarchar(50) NULL,[msn] nvarchar(50) NULL,[job] nvarchar(50) NULL,[zipcode] nvarchar(6) NULL,[address] nvarchar(255) NULL)
CREATE TABLE [sd_user_favorite]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[userid] int NULL,[contentid] int NULL,[createdate] datetime NULL)
CREATE TABLE [sd_user_group]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[groupname] nvarchar(50) NULL,[rate] int NULL,[point] int NULL,[allowupgrade] int NULL,[allowlogin] int NULL,[allowpost] int NULL,[allowpostverify] int NULL,[allowattachment] int NULL,[allowpostnum] int NULL,[isdefault] int NULL)
CREATE TABLE [sd_user_message]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[title] nvarchar(255) NULL,[fromid] int NULL,[userid] int NULL,[content] ntext NULL,[createdate] datetime NULL,[isread] int NULL,[replydate] datetime NULL)
CREATE TABLE [sd_user_money]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[amount] money NULL,[userid] int NULL,[type] int NULL,[content] nvarchar(255) NULL,[createdate] datetime NULL)
CREATE TABLE [sd_user_payrecord]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[orderid] nvarchar(50) NULL,[amount] money NULL,[payway] nvarchar(50) NULL,[userid] int NULL,[isover] int NULL,[createdate] datetime NULL)
CREATE TABLE [sd_user_point]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[point] money NULL,[userid] int NULL,[type] int NULL,[content] nvarchar(255) NULL,[createdate] datetime NULL)
CREATE TABLE [sd_errlog]([id] int IDENTITY(1,1) PRIMARY KEY NOT NULL,[isread] int NULL,[content] ntext NULL,[createdate] datetime NULL)