IF NOT EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[dbo].[pal_MedicalPatientListing]')
 AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
	CREATE TABLE [dbo].[pal_MedicalPatientListing](
		[recId] [int] IDENTITY(1,1) NOT NULL,
		[surfaceItemId] [int] NULL,
		[notes] [varchar](250) NULL,
		[listingDate] [datetime] NULL,
		[scores] [varchar](max) NULL,
	 CONSTRAINT [PK_pal_MedicalPatientListing] 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] TEXTIMAGE_ON [PRIMARY]

END

