USE [EnVisage]
GO

/****** Object:  Table [dbo].[Resource2SuperEC]    Script Date: 06/07/2016 10:47:44 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Resource2SuperEC](
	[Id] [uniqueidentifier] NOT NULL,
	[ResourceId] [uniqueidentifier] NOT NULL,
	[ScenarioId] [uniqueidentifier] NOT NULL,
	[ExpenditureCategoryId] [uniqueidentifier] NOT NULL,
 CONSTRAINT [PK_Resource2SuperEC] 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

ALTER TABLE [dbo].[Resource2SuperEC] ADD  CONSTRAINT [DF_Resource2SuperEC_Id]  DEFAULT (newid()) FOR [Id]
GO


