IF (NOT EXISTS 
	(SELECT * FROM INFORMATION_SCHEMA.TABLES 
    WHERE TABLE_NAME = 'pal_SMSCreditLog'))
BEGIN
	CREATE TABLE [dbo].[pal_SMSCreditLog](
		[recId] [int] IDENTITY(1,1) NOT NULL,
		[customerCode] [varchar](50) NULL,
		[transactionDate] [datetime] NULL,
		[transactionType] [int] NULL,
		[qty] [int] NULL,
		[userId] [int] NULL,
		[reference] [varchar](50) NULL,
	 CONSTRAINT [PK_pal_SMSCreditLog] PRIMARY KEY CLUSTERED 
	(
		[recId] ASC
	)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	) ON [PRIMARY]

END

