Tables [dbo].[wsm_userprofile_assoc_detail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:02 AM Wednesday, March 07, 2007
Last Modified11:09:57 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key xpkwsm_userprofile_assoc_detai: policy_uuid\userprofile_uuid\rule_uuid\sched_uuid\policytypeForeign Keys r_1523: [dbo].[wsm_policy_detail].policy_uuidIndexes xif1wsm_userprofile_assoc_deta: policy_uuidpolicy_uuidint4
No
Cluster Primary Key xpkwsm_userprofile_assoc_detai: policy_uuid\userprofile_uuid\rule_uuid\sched_uuid\policytypeForeign Keys r_1524: [dbo].[wsm_userprofile_detail].userprofile_uuidIndexes xif2wsm_userprofile_assoc_deta: userprofile_uuiduserprofile_uuidbinary(16)16
No
Cluster Primary Key xpkwsm_userprofile_assoc_detai: policy_uuid\userprofile_uuid\rule_uuid\sched_uuid\policytypeForeign Keys r_1525: [dbo].[wsm_rule].rule_uuidIndexes xif3wsm_userprofile_assoc_deta: rule_uuidrule_uuidbinary(16)16
No
Cluster Primary Key xpkwsm_userprofile_assoc_detai: policy_uuid\userprofile_uuid\rule_uuid\sched_uuid\policytypeForeign Keys r_1526: [dbo].[wsm_profile_schedule].sched_uuidIndexes xif4wsm_userprofile_assoc_deta: sched_uuidsched_uuidbinary(16)16
No
Cluster Primary Key xpkwsm_userprofile_assoc_detai: policy_uuid\userprofile_uuid\rule_uuid\sched_uuid\policytypepolicytypenvarchar(255)510
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key xpkwsm_userprofile_assoc_detai: policy_uuid\userprofile_uuid\rule_uuid\sched_uuid\policytypexpkwsm_userprofile_assoc_detaipolicy_uuid, userprofile_uuid, rule_uuid, sched_uuid, policytype
Yes
xif1wsm_userprofile_assoc_detapolicy_uuid
xif2wsm_userprofile_assoc_detauserprofile_uuid
xif3wsm_userprofile_assoc_detarule_uuid
xif4wsm_userprofile_assoc_detasched_uuid
Foreign Keys Foreign Keys
NameColumns
r_1523policy_uuid->[dbo].[wsm_policy_detail].[policy_uuid]
r_1524userprofile_uuid->[dbo].[wsm_userprofile_detail].[userprofile_uuid]
r_1525rule_uuid->[dbo].[wsm_rule].[rule_uuid]
r_1526sched_uuid->[dbo].[wsm_profile_schedule].[sched_uuid]
Permissions
TypeActionOwning Principal
GrantDeletewsm_admin_group
GrantInsertwsm_admin_group
GrantSelectwsm_admin_group
GrantUpdatewsm_admin_group
GrantSelectwsm_ro_group
SQL Script
CREATE TABLE [dbo].[wsm_userprofile_assoc_detail]
(
[policy_uuid] [int] NOT NULL,
[userprofile_uuid] [binary] (16) NOT NULL,
[rule_uuid] [binary] (16) NOT NULL,
[sched_uuid] [binary] (16) NOT NULL,
[policytype] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_userprofile_assoc_detail] ADD CONSTRAINT [xpkwsm_userprofile_assoc_detai] PRIMARY KEY CLUSTERED ([policy_uuid], [userprofile_uuid], [rule_uuid], [sched_uuid], [policytype]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif1wsm_userprofile_assoc_deta] ON [dbo].[wsm_userprofile_assoc_detail] ([policy_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif3wsm_userprofile_assoc_deta] ON [dbo].[wsm_userprofile_assoc_detail] ([rule_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif4wsm_userprofile_assoc_deta] ON [dbo].[wsm_userprofile_assoc_detail] ([sched_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif2wsm_userprofile_assoc_deta] ON [dbo].[wsm_userprofile_assoc_detail] ([userprofile_uuid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_userprofile_assoc_detail] ADD CONSTRAINT [r_1523] FOREIGN KEY ([policy_uuid]) REFERENCES [dbo].[wsm_policy_detail] ([policy_uuid])
GO
ALTER TABLE [dbo].[wsm_userprofile_assoc_detail] ADD CONSTRAINT [r_1524] FOREIGN KEY ([userprofile_uuid]) REFERENCES [dbo].[wsm_userprofile_detail] ([userprofile_uuid])
GO
ALTER TABLE [dbo].[wsm_userprofile_assoc_detail] ADD CONSTRAINT [r_1525] FOREIGN KEY ([rule_uuid]) REFERENCES [dbo].[wsm_rule] ([rule_uuid])
GO
ALTER TABLE [dbo].[wsm_userprofile_assoc_detail] ADD CONSTRAINT [r_1526] FOREIGN KEY ([sched_uuid]) REFERENCES [dbo].[wsm_profile_schedule] ([sched_uuid])
GO
GRANT SELECT ON  [dbo].[wsm_userprofile_assoc_detail] TO [wsm_admin_group]
GRANT INSERT ON  [dbo].[wsm_userprofile_assoc_detail] TO [wsm_admin_group]
GRANT DELETE ON  [dbo].[wsm_userprofile_assoc_detail] TO [wsm_admin_group]
GRANT UPDATE ON  [dbo].[wsm_userprofile_assoc_detail] TO [wsm_admin_group]
GRANT SELECT ON  [dbo].[wsm_userprofile_assoc_detail] TO [wsm_ro_group]
GO
Uses