[dbo].[CapacityThreshold]
CREATE TABLE [dbo].[CapacityThreshold]
(
[CapacityThresholdID] [int] NOT NULL IDENTITY(1, 1),
[ThresholdPercent] [int] NOT NULL,
[BackgroundArgb] [int] NOT NULL CONSTRAINT [DF_CapacityThreshold_BackgroundArgb] DEFAULT ((-1)),
[ForegroundArgb] [int] NOT NULL CONSTRAINT [DF_CapacityThreshold_ForegroundArgb] DEFAULT ((-16777216))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CapacityThreshold] ADD CONSTRAINT [CK_CapacityThreshold_ThresholdPercent] CHECK (([ThresholdPercent]>=(0)))
GO
ALTER TABLE [dbo].[CapacityThreshold] ADD CONSTRAINT [PK_CapacityThreshold] PRIMARY KEY CLUSTERED ([CapacityThresholdID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_CapacityThreshold_ThresholdPercent] ON [dbo].[CapacityThreshold] ([ThresholdPercent]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[CapacityThreshold] TO [MssExec]
GRANT INSERT ON [dbo].[CapacityThreshold] TO [MssExec]
GRANT DELETE ON [dbo].[CapacityThreshold] TO [MssExec]
GRANT UPDATE ON [dbo].[CapacityThreshold] TO [MssExec]
GO