IF NOT EXISTS (SELECT * FROM sysobjects WHERE name = 'Tbl_ClubH')
BEGIN
CREATE TABLE [dbo].[Tbl_ClubH](
	[AutoId] [INT] IDENTITY(1,1) NOT NULL,
	[Mobile] [VARCHAR](13) NOT NULL,
	[Name] [NVARCHAR](60) NULL,
	[Addr] [NVARCHAR](150) NULL,
	[Tarikh] [SMALLDATETIME] NULL,
	[LastMessage] [NVARCHAR](120) NULL,
 CONSTRAINT [PK_Tbl_ClubH] PRIMARY KEY CLUSTERED 
(
  [AutoId] ASC
)
) ON [PRIMARY]

ALTER TABLE [dbo].[Tbl_ClubH] ADD  CONSTRAINT [DF_Tbl_ClubH_Tarikh]  DEFAULT (GETDATE()) FOR [Tarikh]
End
