if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EVENT_INFO]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EVENT_INFO]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EVENT_INFO_BC]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EVENT_INFO_BC]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EVENT_INFO_BC_3RD]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EVENT_INFO_BC_3RD]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EVENT_INFO_BC_4TH]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EVENT_INFO_BC_4TH]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EVENT_INFO_BC_5TH]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EVENT_INFO_BC_5TH]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[T_BC_PCROOM_PLAYCOUNT]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[T_BC_PCROOM_PLAYCOUNT]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[T_ENTER_CHECK_BC]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[T_ENTER_CHECK_BC]
GO
CREATE TABLE [dbo].[EVENT_INFO] (
[Server] [smallint] NOT NULL ,
[Square] [tinyint] NOT NULL ,
[AccountID] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CharacterName] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Class] [tinyint] NOT NULL ,
[Point] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[EVENT_INFO_BC] (
[Server] [smallint] NOT NULL ,
[Bridge] [tinyint] NOT NULL ,
[AccountID] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CharacterName] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Class] [tinyint] NOT NULL ,
[Point] [int] NOT NULL ,
[PlayCount] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[EVENT_INFO_BC_3RD] (
[Server] [tinyint] NOT NULL ,
[Bridge] [tinyint] NOT NULL ,
[AccountID] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CharacterName] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Class] [tinyint] NOT NULL ,
[Point] [int] NOT NULL ,
[PlayCount] [int] NOT NULL ,
[SumLeftTime] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[EVENT_INFO_BC_4TH] (
[Server] [tinyint] NOT NULL ,
[Bridge] [tinyint] NOT NULL ,
[AccountID] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CharacterName] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Class] [tinyint] NOT NULL ,
[Point] [int] NOT NULL ,
[PlayCount] [int] NOT NULL ,
[SumLeftTime] [int] NOT NULL ,
[MinLeftTime] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[EVENT_INFO_BC_5TH] (
[Server] [tinyint] NOT NULL ,
[Bridge] [tinyint] NOT NULL ,
[AccountID] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CharacterName] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[Class] [tinyint] NOT NULL ,
[Point] [int] NOT NULL ,
[PlayCount] [int] NOT NULL ,
[SumLeftTime] [int] NOT NULL ,
[MinLeftTime] [int] NOT NULL ,
[RegDate] [smalldatetime] NOT NULL ,
[AlivePartyCount] [int] NOT NULL ,
[MaxPointLeftTime] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[T_BC_PCROOM_PLAYCOUNT] (
[PCROOM_GUID] [int] NOT NULL ,
[AccountID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[PlayCount] [int] NOT NULL ,
[Point] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[T_ENTER_CHECK_BC] (
[AccountID] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[CharName] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[ServerCode] [smallint] NOT NULL ,
[ToDayEnterCount] [tinyint] NOT NULL ,
[LastEnterDate] [smalldatetime] NOT NULL
) ON [PRIMARY]
GO