
[dbo].[usm_link_metric_scope]
CREATE TABLE [dbo].[usm_link_metric_scope]
(
[link_metric_scope_id] [int] NOT NULL,
[metric_category_id] [int] NOT NULL,
[scope_id] [int] NOT NULL,
[service_goal_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_link_metric_scope] ADD CONSTRAINT [XPKusm_link_metric_scope] PRIMARY KEY CLUSTERED ([link_metric_scope_id], [metric_category_id], [scope_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_link_metric_scope] ADD CONSTRAINT [$usm_l_r000024b900000000] FOREIGN KEY ([service_goal_id]) REFERENCES [dbo].[usm_service_goal] ([service_goal_id])
GO
ALTER TABLE [dbo].[usm_link_metric_scope] ADD CONSTRAINT [$usm_l_r000024c300000000] FOREIGN KEY ([scope_id]) REFERENCES [dbo].[usm_scope] ([scope_id])
GO
ALTER TABLE [dbo].[usm_link_metric_scope] ADD CONSTRAINT [$usm_l_r000024cd00000000] FOREIGN KEY ([metric_category_id]) REFERENCES [dbo].[usm_metric_category] ([metric_category_id])
GO
GRANT SELECT ON [dbo].[usm_link_metric_scope] TO [usmgroup]
GRANT INSERT ON [dbo].[usm_link_metric_scope] TO [usmgroup]
GRANT DELETE ON [dbo].[usm_link_metric_scope] TO [usmgroup]
GRANT UPDATE ON [dbo].[usm_link_metric_scope] TO [usmgroup]
GO