USE [EnVisage]
GO

IF (EXISTS (SELECT * FROM sys.tables where name='IntegrationCrm2Prevu'))
BEGIN
DROP TABLE [dbo].[IntegrationCrm2Prevu]

end

/****** Object:  Table [dbo].[IntegrationCrm2Prevu]    Script Date: 05/04/2016 10:13:47 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[IntegrationCrm2Prevu](
	[ClientInfoId] [uniqueidentifier] NOT NULL,
	[Id] [uniqueidentifier] NOT NULL,
	[CRMEntityName] [nvarchar](50) NOT NULL,
	[CRMFieldName] [nvarchar](50) NOT NULL,
	[CRMFieldType] [nvarchar](50) NOT NULL,
	[PrevuName] [nvarchar](50) NOT NULL,
	[PrevuEntityName] [nvarchar](50) NOT NULL,
	[TriggerType] [nchar](10) NOT NULL,
	[CRMDefaultValue] [nvarchar](100) NULL,
 CONSTRAINT [PK_IntegrationCrm2Prevu] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO


