IF (NOT EXISTS 
	(SELECT * FROM INFORMATION_SCHEMA.TABLES 
    WHERE TABLE_NAME = 'pal_CampaignInterval'))
BEGIN
	CREATE TABLE [dbo].[pal_CampaignInterval](
		[recId] [int] IDENTITY(1,1) NOT NULL,
		[interval] [varchar](250) NULL,
		[isActive] [bit] NULL,
	 CONSTRAINT [PK_pal_CampaignInterval] 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]

	INSERT INTO pal_CampaignInterval
	VALUES 
	('Once Off',1),
	('Daily',0),
	('Monthly',0)
	
END
