if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DiyPage_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[DiyPage_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ACT_LabelFolder]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ACT_LabelFolder]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[AC_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[AC_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ATT_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ATT_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Admin_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Admin_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Article_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Article_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Book_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Book_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Card_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Card_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ClassLink_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ClassLink_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Class_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Class_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Comment_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Comment_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Show_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Show_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Config_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Config_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Digg_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Digg_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DiyMenu_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[DiyMenu_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DownType_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[DownType_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Edays_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Edays_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Friend_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Friend_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Group_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Group_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Label_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Label_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Link_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Link_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Log_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Log_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Message_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Message_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ModeForm_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ModeForm_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ModeUser_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ModeUser_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Mode_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Mode_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Money_Log_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Money_Log_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Plus_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Plus_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Point_Log_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Point_Log_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Sitelink_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Sitelink_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Table_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Table_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Tags_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Tags_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Upload_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Upload_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Field_User_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Field_User_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[User_Act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[User_Act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Vote_act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[Vote_act]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ads]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[ads]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[space_ACT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[space_ACT]
-
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[templets_act]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[templets_act]
-
CREATE TABLE [dbo].[DiyPage_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[pageName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DiyPath] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[tempurl] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[FileName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[ACT_LabelFolder] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Foldername] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[AC_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Field1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Field2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Types] [int] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[ATT_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[AID] [int] Default 0 ,
	[Aname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Admin_Act] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Admin_Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PassWord] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[User_Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[RealName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sex] [tinyint] Default 0 ,
	[TEL] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[AddDate] [datetime] NULL ,
	[LoginTime] [datetime] NULL ,
	[LoginIP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Locked] [tinyint] Default 0 ,
	[SuperTF] [tinyint] Default 0 ,
	[LoginNumber] [int] Default 0 ,
	[Description] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Purview] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[ACTCMS_QXLX] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ACT_Other] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Article_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ClassID] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[IntactTitle] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Intro] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Hits] [int] Default 0 ,
	[rev] [tinyint] Default 0 ,
	[ChargeType] [tinyint] Default 0 ,
	[InfoPurview] [tinyint] Default 0 ,
	[KeyWords] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[author] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[CopyFrom] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[UpdateTime] [datetime] NULL ,
	[TemplateUrl] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[FileName] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[isAccept] [tinyint] Default 0 ,
	[delif] [tinyint] Default 0 ,
	[ArticleInput] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Slide] [tinyint] Default 0 ,
	[PicUrl] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Ismake] [tinyint] Default 0 ,
	[Digg] [int] Default 0 ,
	[down] [int] Default 0 ,
	[ReadPoint] [int] Default 0 ,
	[PitchTime] [int] Default 0 ,
	[ReadTimes] [int] Default 0 ,
	[DividePercent] [int] Default 0 ,
	[arrGroupID] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[ATT] [smallint] Default 0 ,
	[IStop] [int] Default 0 ,
	[userid] [int] Default 0 ,
	[ActLink] [tinyint] Default 0
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Book_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[show] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[qq] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[mail] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[url] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[xq] [smallint] NULL ,
	[nr] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[addtime] [datetime] NULL ,
	[hf] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sh] [tinyint] Default 0 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Card_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[CardNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardPass] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[title] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[allgroupid] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Money] [money] NULL ,
	[ValidNum] [int] Default 0 ,
	[ValidUnit] [int] Default 0 ,
	[AddDate] [datetime] NULL ,
	[EndDate] [datetime] NULL ,
	[UseDate] [datetime] NULL ,
	[UserID] [int] Default 0 ,
	[IsUsed] [int] Default 0 ,
	[grGroupID] [int] Default 0 ,
	[ExpireGroupID] [int] Default 0 ,
	[IsSale] [int] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[ClassLink_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ClassLinkName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[Description] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[AddDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Class_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeID] [smallint] NULL ,
	[ClassID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OrderID] [smallint] NULL ,
	[enname] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassEName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ParentID] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[FolderTemplate] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ConTentTemplate] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Extension] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassKeywords] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassDescription] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ACTlink] [int] Default 0 ,
	[ClassPurview] [int] Default 0 ,
	[ClassReadPoint] [int] Default 0 ,
	[ClassChargeType] [int] Default 0 ,
	[ClassPitchTime] [int] Default 0 ,
	[ClassReadTimes] [int] Default 0 ,
	[ClassDividePercent] [int] Default 0 ,
	[ClassArrGroupID] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[tg] [tinyint] Default 0 ,
	[dh] [tinyint] Default 0 ,
	[TGGroupID] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[GroupIDClass] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[moresite] [tinyint] Default 0 ,
	[siteurl] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[sitepath] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[FilePathName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[makehtmlname] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[pageTemplate] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Comment_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeID] [int] Default 0 ,
	[ClassID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[acticleID] [int] Default 0 ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserIP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Locked] [tinyint] Default 0 ,
	[AddDate] [datetime] NULL ,
	[userid] [int] Default 0 ,
	[Y] [int]  Default 0  ,
	[N] [int]  Default 0
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Show_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeID] [int] Default 0 ,
	[acticleID] [int] Default 0 ,
	[AddDate] [datetime] Default 0 ,
	[userid] [int] Default 0
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Config_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ActCMS_SysSetting] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ActCMS_OtherSetting] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ActCMS_Upfile] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Digg_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[IP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[NewsID] [int] Default 0 ,
	[DiggTime] [datetime] NULL ,
	[Digg] [tinyint] Default 0 ,
	[ModeID] [smallint] Default 0 ,
	[users] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[DiyMenu_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[MenuName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MenuUrl] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[OpenWay] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[AdminID] [smallint] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[DownType_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[rootid] [int] Default 0 ,
	[DownName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IFLock] [tinyint] Default 0 ,
	[DownPath] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserGroup] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DownPoint] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[isDisp] [tinyint] Default 0 ,
	[IsOuter] [int] Default 0 
) ON [PRIMARY]


CREATE TABLE [dbo].[Edays_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] Default 0 ,
	[Edays] [int] Default 0 ,
	[Flag] [int] Default 0 ,
	[AddDate] [datetime] NULL ,
	[IP] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserLog] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Descript] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]


CREATE TABLE [dbo].[Friend_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[AddDate] [datetime] NULL ,
	[Userid] [int] Default 0 ,
	[flag] [tinyint] Default 0 ,
	[UM] [smallint] Default 0 ,
	[U] [int] Default 0 
) ON [PRIMARY]


CREATE TABLE [dbo].[Group_Act] (
	[GroupID] [int] IDENTITY (1, 1) NOT NULL ,
	[DefaultGroup] [tinyint] Default 0 ,
	[Description] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ChargeType] [tinyint] Default 0 ,
	[GroupPoint] [int] Default 0 ,
	[ValidDays] [int] Default 0 ,
	[ModeID] [smallint] Default 0 ,
	[GroupSetting] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[GroupName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


CREATE TABLE [dbo].[Label_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[LabelName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[LabelContent] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Description] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[LabelType] [tinyint] Default 0 ,
	[LabelFlag] [tinyint] Default 0 ,
	[AddDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


CREATE TABLE [dbo].[Link_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ClassLinkID] [int] Default 0 ,
	[SiteName] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Webadmin] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Url] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[LinkType] [int] Default 0 ,
	[Logo] [nvarchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Description] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Rec] [int] Default 0 ,
	[AddDate] [datetime] NULL ,
	[Locked] [tinyint] Default 0 ,
	[sh] [int] Default 0 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Log_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ACT] [int] Default 0 ,
	[LoginIP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Times] [datetime] NULL ,
	[ACTError] ntext null ,
	[GetHttp]  ntext null ,
) ON [PRIMARY]


CREATE TABLE [dbo].[Message_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Flag] [tinyint] Default 0 ,
	[Sendtime] [datetime] NULL ,
	[userid] [int] Default 0 ,
	[UM] [smallint] Default 0 ,
	[U] [int] Default 0 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


CREATE TABLE [dbo].[ModeForm_ACT] (
	[ModeID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeTable] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeNote] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UploadPath] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UploadSize] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UnlockTime] [tinyint] Default 0 ,
	[StartTime] [datetime] NULL ,
	[EndTime] [datetime] NULL ,
	[UserGroupList] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SubmitNum] [tinyint] Default 0 ,
	[Moneys] [smallint] NULL ,
	[FormCode] [tinyint] Default 0 ,
	[ModeStatus] [tinyint] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[ModeUser_Act] (
	[ModeID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeTable] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeNote] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Template] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[RegCode] [tinyint] Default 0 ,
	[SpaceID] [int] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Mode_Act] (
	[ModeID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IFmake] [int] Default 0 ,
	[ModeTable] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[FileFolder] [tinyint] Default 0 ,
	[AutoPage] [int] Default 0 ,
	[ProjectUnit] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UpFilesDir] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ContentExtension] [nvarchar] (6) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeStatus] [tinyint] Default 0 ,
	[RefreshFlag] [int] Default 0 ,
	[RecyleIF] [int] Default 0 ,
	[ACT_DiY] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[MakeFolderDir] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[WriteComment] [tinyint] Default 0 ,
	[CommentCode] [tinyint] Default 0 ,
	[Commentsize] [smallint] NULL ,
	[ModeNote] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[CommentTemp] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[adminmb] [tinyint] Default 0 ,
	[usermb] [tinyint] Default 0 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Money_Log_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClientName] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Money] [money] NULL ,
	[CurrMoney] [money] NULL ,
	[MoneyType] [int] Default 0 ,
	[IncomeFlag] [int] Default 0 ,
	[ModeID] [int] Default 0 ,
	[InfoID] [int] Default 0 ,
	[OrderID] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[PaymentID] [int] Default 0 ,
	[Remark] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[PayTime] [datetime] NULL ,
	[LogTime] [datetime] NULL ,
	[Inputer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Plus_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[PlusName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PlusID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PlusUrl] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsUse] [int] Default 0 ,
	[PlusIntro] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[OrderID] [smallint] NULL ,
	[PlusConfig] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Point_Log_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeID] [int] Default 0 ,
	[InfoID] [int] Default 0 ,
	[ContributeFlag] [int] Default 0 ,
	[AddDate] [datetime] NULL ,
	[IP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PointFlag] [int] Default 0 ,
	[CurrPoint] [int] Default 0 ,
	[Point] [int] Default 0 ,
	[Times] [int] Default 0 ,
	[UserLog] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Descript] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]


CREATE TABLE [dbo].[Sitelink_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Url] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OpenType] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IFS] [tinyint] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Table_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ModeID] [smallint] NULL ,
	[FieldName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsNotNull] [tinyint] Default 0 ,
	[OrderID] [smallint] NULL ,
	[Description] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[FieldType] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Type_Default] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[width] [smallint] NULL ,
	[height] [smallint] NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Type_Type] [int] Default 0 ,
	[ISType] [int] Default 0 ,
	[regEx] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[regError] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[SearchIF] [tinyint] Default 0 ,
	[ValueOnly] [tinyint] Default 0 ,
	[check] [tinyint] Default 0 ,
	[ACTCMS] [int] Default 0 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[Tags_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[TagsChar] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeID] [tinyint] Default 0 ,
	[AddTime] [datetime] NULL ,
	[Hits] [int] Default 0 ,
	[ClicksTime] [datetime] NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Upload_Act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ArtileID] [int] Default 0 ,
	[UpfileDir] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Extension] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[UpdateTime] [datetime] NULL ,
	[ModeID] [smallint] NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Field_User_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[User_Act] (
	[UserID] [int] IDENTITY (1, 1) NOT NULL ,
	[GroupID] [smallint] NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PassWord] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginNumber] [int] Default 0 ,
	[ChargeType] [int] Default 0 ,
	[Score] [int] Default 0 ,
	[UModeID] [int] Default 0 ,
	[EDays] [int] Default 0 ,
	[Locked] [tinyint] Default 0 ,
	[Loginip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[RegDate] [datetime] NULL ,
	[BeginDate] [datetime] NULL ,
	[LoginTime] [datetime] NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Money] [money]  Default 0 ,
	[RealName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[sex] [tinyint] Default 0 ,
	[Province] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Birthday] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Privacy] [int] Default 0 ,
	[CheckNum] [nvarchar] (16) COLLATE Chinese_PRC_CI_AS NULL ,
	[note] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ArticleNum] [int] Default 0 ,
	[QQ] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[MSN] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[address] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[HomeTel] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Mobile] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[postcode] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[myface] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[templetsid] [smallint] NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[Vote_act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[title] [nvarchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[isLock] [smallint] NULL ,
	[VoteTime] [datetime] NULL ,
	[VoteType] [tinyint] Default 0 ,
	[VoteNum] [int] Default 0 ,
	[rootid] [smallint] NULL ,
	[VoteStart] [datetime] NULL ,
	[VoteEnd] [datetime] NULL 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[ads] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[ADID] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[ADType] [smallint] NULL ,
	[ADSrc] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ADCode] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ADWidth] [smallint] NULL ,
	[ADHeight] [smallint] NULL ,
	[ADLink] [nvarchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[ADAlt] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ADNote] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ADViews] [int] Default 0 ,
	[ADHits] [int] Default 0 ,
	[ADStopViews] [int] Default 0 ,
	[ADStopHits] [int] Default 0 ,
	[ADStopDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
-
CREATE TABLE [dbo].[space_ACT] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[ClassName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassOrder] [int] Default 0 ,
	[ClassTemp] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModeID] [smallint] NULL ,
	[UModeID] [int] Default 0 
) ON [PRIMARY]
-
CREATE TABLE [dbo].[templets_act] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[templets] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserSet] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]

