
[dbo].[wsm_configuration_profile]
CREATE TABLE [dbo].[wsm_configuration_profile]
(
[config_profile_uuid] [binary] (16) NOT NULL,
[name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[description] [nvarchar] (1024) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[created_date] [int] NULL,
[creation_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[last_update_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[last_update_date] [int] NULL,
[configuration_type] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[config_type_id] [int] NOT NULL,
[templateuuid] [binary] (16) NOT NULL,
[version] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_configuration_profile] ADD CONSTRAINT [XPKwsm_configuration_profile] PRIMARY KEY CLUSTERED ([config_profile_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif1wsm_configuration_profile] ON [dbo].[wsm_configuration_profile] ([config_type_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif2wsm_configuration_profile] ON [dbo].[wsm_configuration_profile] ([templateuuid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_configuration_profile] ADD CONSTRAINT [r_1475] FOREIGN KEY ([config_type_id]) REFERENCES [dbo].[wsm_configprofile_type] ([config_type_id])
GO
ALTER TABLE [dbo].[wsm_configuration_profile] ADD CONSTRAINT [r_1476] FOREIGN KEY ([templateuuid]) REFERENCES [dbo].[wsm_template] ([templateuuid])
GO
GRANT SELECT ON [dbo].[wsm_configuration_profile] TO [wsm_admin_group]
GRANT INSERT ON [dbo].[wsm_configuration_profile] TO [wsm_admin_group]
GRANT DELETE ON [dbo].[wsm_configuration_profile] TO [wsm_admin_group]
GRANT UPDATE ON [dbo].[wsm_configuration_profile] TO [wsm_admin_group]
GRANT SELECT ON [dbo].[wsm_configuration_profile] TO [wsm_ro_group]
GO