if exists (select * from dbo.sysobjects where id = object_id(N'[GuangXiSFW]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [GuangXiSFW]
GO

CREATE TABLE [GuangXiSFW] (
	[pkId] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[FileName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[FileExtension] [varchar] (4) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[JoinTime] [datetime] NOT NULL ,
	[UserID] [int] NOT NULL ,
	[BigClassID] [int] NOT NULL ,
	[Memo] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Users] [ntext] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[IsOver] [int] NOT NULL ,
	CONSTRAINT [PK_GuangXiSFW] PRIMARY KEY  CLUSTERED 
	(
		[pkId]
	)  ON [PRIMARY] 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO



if exists (select * from dbo.sysobjects where id = object_id(N'[FlashGameScores]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [FlashGameScores]
GO

CREATE TABLE [FlashGameScores] (
	[pkId] [int] IDENTITY (1, 1) NOT NULL ,
	[userId] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[userName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[gameId] [int] NULL ,
	[TotalScore] [int] NULL ,
	CONSTRAINT [PK_FlashGameScores] PRIMARY KEY  CLUSTERED 
	(
		[pkId]
	)  ON [PRIMARY] 
) ON [PRIMARY]
GO


if exists (select * from dbo.sysobjects where id = object_id(N'[FlashGameScoreData]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [FlashGameScoreData]
GO

CREATE TABLE [FlashGameScoreData] (
	[pkId] [int] IDENTITY (1, 1) NOT NULL ,
	[GameId] [int] NULL ,
	[userId] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[userName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[score] [int] NULL ,
	CONSTRAINT [PK_FlashGameScoreData] PRIMARY KEY  CLUSTERED 
	(
		[pkId]
	)  ON [PRIMARY] 
) ON [PRIMARY]
GO


if exists (select * from dbo.sysobjects where id = object_id(N'[SensitiveWords]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [SensitiveWords]
GO

CREATE TABLE [SensitiveWords] (
	[pkId] [int] IDENTITY (1, 1) NOT NULL ,
	[ID] [char] (32) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Level] [int] NOT NULL ,
	[Word] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	CONSTRAINT [PK_SensitiveWords] PRIMARY KEY  CLUSTERED 
	(
		[pkId]
	)  ON [PRIMARY] 
) ON [PRIMARY]
GO


