use [envisage]
GO

/****** Object:  Index [PK_Scenario]    Script Date: 05.06.2014 17:14:48 ******/
ALTER TABLE [dbo].[Scenario] ADD  CONSTRAINT [PK_Scenario] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO


ALTER TABLE [dbo].[Scenario]  WITH CHECK ADD  CONSTRAINT [FK_Scenario_TemplateScenario] FOREIGN KEY([TemplateId])
REFERENCES [dbo].[Scenario] ([Id])
GO

ALTER TABLE [dbo].[Scenario] CHECK CONSTRAINT [FK_Scenario_TemplateScenario]
GO
