IF (NOT EXISTS 
	(SELECT * FROM INFORMATION_SCHEMA.TABLES 
    WHERE TABLE_NAME = 'pal_CampaignRecipient'))
BEGIN
	CREATE TABLE [dbo].[pal_CampaignRecipient](
		[recId] [int] IDENTITY(1,1) NOT NULL,
		[campaignId] [int] NULL,
		[recipientName] [varchar](150) NULL,
		[recipientNumber] [varchar](150) NULL,
		[isIncluded] [bit] NULL,
	 CONSTRAINT [PK_pal_CampaignRecipient] 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

TRUNCATE TABLE pal_SurfaceFieldValidationtype
SET IDENTITY_INSERT [dbo].[pal_SurfaceFieldValidationtype] ON 
INSERT [dbo].[pal_SurfaceFieldValidationtype] (recId,validationType,isActive) 
VALUES (1, N'email', 1)
INSERT [dbo].[pal_SurfaceFieldValidationtype] (recId,validationType,isActive) 
VALUES (2, N'id number', 1)
INSERT [dbo].[pal_SurfaceFieldValidationtype] (recId,validationType,isActive) 
VALUES (3, N'mobile number', 1)
SET IDENTITY_INSERT [dbo].[pal_SurfaceFieldValidationtype] OFF
DBCC CHECKIDENT ('pal_SurfaceFieldValidationtype', RESEED, 3);


