[dbo].[ARCAlertCriteriaGroup]
CREATE TABLE [dbo].[ARCAlertCriteriaGroup]
(
[ARCAlertCriteriaGroupID] [int] NOT NULL IDENTITY(1, 1),
[ARCAlertFID] [int] NOT NULL,
[JoinOperatorFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCAlertCriteriaGroup] ADD CONSTRAINT [PK_ARCAlertCriteriaGroup] PRIMARY KEY NONCLUSTERED ([ARCAlertCriteriaGroupID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCAlertCriteriaGroup] ADD CONSTRAINT [FK_ARCAlertCriteriaGroup_ARCAlert] FOREIGN KEY ([ARCAlertFID]) REFERENCES [dbo].[ARCAlert] ([ARCAlertID])
GO
ALTER TABLE [dbo].[ARCAlertCriteriaGroup] ADD CONSTRAINT [FK_ARCAlertCriteriaGroup_JoinOperator] FOREIGN KEY ([JoinOperatorFID]) REFERENCES [dbo].[JoinOperator] ([JoinOperatorID])
GO
GRANT SELECT ON [dbo].[ARCAlertCriteriaGroup] TO [MssExec]
GRANT INSERT ON [dbo].[ARCAlertCriteriaGroup] TO [MssExec]
GRANT DELETE ON [dbo].[ARCAlertCriteriaGroup] TO [MssExec]
GRANT UPDATE ON [dbo].[ARCAlertCriteriaGroup] TO [MssExec]
GO