IF  NOT EXISTS (SELECT * FROM sys.objects 
WHERE object_id = OBJECT_ID(N'[dbo].[pal_ImageMap]') AND type in (N'U'))
BEGIN

	CREATE TABLE [dbo].[pal_ImageMap](
		[recId] [int] IDENTITY(1,1) NOT NULL,
		[surfaceItemId] [int] NULL,
		[surfaceFieldId] [int] NULL,
		[imageMapNote] [varchar](500) NULL,
		[posX] [int] NULL,
		[posY] [int] NULL,
		[sequence] [int] NULL,
		[dateSaved] [datetime] NULL,
		[userIdSaved] [int] NULL,
		[dateUpdated] [datetime] NULL,
		[userIdUpdated] [int] NULL,
		[isActive] [bit] NULL,
	 CONSTRAINT [PK_pal_ImageMap] 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