CREATE TABLE [cohesion].[cc_host_map]
(
[host_map_id] [int] NOT NULL,
[host_id] [int] NULL,
[host_group_id] [int] NULL,
[host_type_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_host_map] ADD CONSTRAINT [PK__cc_host_map__49C3F6B7] PRIMARY KEY CLUSTERED ([host_map_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [XAK1cc_host_map] ON [cohesion].[cc_host_map] ([host_id], [host_group_id], [host_type_id]) ON [PRIMARY]
GO
ALTER TABLE [cohesion].[cc_host_map] ADD CONSTRAINT [FK__cc_host_m__host___4AB81AF0] FOREIGN KEY ([host_group_id]) REFERENCES [cohesion].[cc_host_group] ([host_group_id])
GO
ALTER TABLE [cohesion].[cc_host_map] ADD CONSTRAINT [FK__cc_host_m__host___4BAC3F29] FOREIGN KEY ([host_type_id]) REFERENCES [cohesion].[cc_host_type] ([host_type_id])
GO
ALTER TABLE [cohesion].[cc_host_map] ADD CONSTRAINT [FK__cc_host_m__host___4CA06362] FOREIGN KEY ([host_id]) REFERENCES [cohesion].[cc_host] ([host_id])
GO