EnVisageOnline/Main-RMO/Database/Schema/Tables/dbo.Scenario_Snapshot.sql

15 lines
1.2 KiB
Transact-SQL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Run this script on SQL Server 2008 or later. There may be flaws if running on earlier versions of SQL Server.
*/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Scenario_Snapshot]') AND type in (N'U'))
DROP TABLE [dbo].[Scenario_Snapshot]
GO
CREATE TABLE [dbo].[Scenario_Snapshot] (
[Id] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Scenario_Snapshot_Id] DEFAULT (newid()),
[ParentId] [uniqueidentifier] NOT NULL,
[UserId] [uniqueidentifier] NULL,
[CreateDate] [datetime] NULL,
[FiscalYearId] [uniqueidentifier] NULL
) ON [PRIMARY]
GO