CREATE TABLE [dbo].[Validation]
(
[ValidationID] [int] NOT NULL IDENTITY(1, 1),
[NameKey] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[KeyValue] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EffectiveDateUtc] [datetime] NOT NULL,
[ExpirationDateUtc] [datetime] NULL,
[IsSystemValidation] [bit] NOT NULL CONSTRAINT [DF_Validation_IsSystemValidation] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Validation] ADD CONSTRAINT [PK_Validation] PRIMARY KEY NONCLUSTERED ([ValidationID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Validation] ADD CONSTRAINT [IX_Validation_NameKey] UNIQUE CLUSTERED ([NameKey], [EffectiveDateUtc] DESC) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[Validation] TO [MssExec]
GRANT INSERT ON [dbo].[Validation] TO [MssExec]
GRANT DELETE ON [dbo].[Validation] TO [MssExec]
GRANT UPDATE ON [dbo].[Validation] TO [MssExec]
GO