Tables [dbo].[ToolRolePropertySetting]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created12:44:46 PM Thursday, October 04, 2007
Last Modified12:44:46 PM Thursday, October 04, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key pk_toolrolepropertysetting: toolID\roleID\propertyNameForeign Keys fk_trps_t: [dbo].[Tools].toolIDtoolIDint4
No
Cluster Primary Key pk_toolrolepropertysetting: toolID\roleID\propertyNameForeign Keys fk_trps_r: [dbo].[Roles].roleIDroleIDint4
No
Cluster Primary Key pk_toolrolepropertysetting: toolID\roleID\propertyNamepropertyNamenvarchar(255)510
No
propertyValuenvarchar(255)510
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_toolrolepropertysetting: toolID\roleID\propertyNamepk_toolrolepropertysettingtoolID, roleID, propertyName
Yes
Foreign Keys Foreign Keys
NameColumns
fk_trps_rroleID->[dbo].[Roles].[roleID]
fk_trps_ttoolID->[dbo].[Tools].[toolID]
SQL Script
CREATE TABLE [dbo].[ToolRolePropertySetting]
(
[toolID] [int] NOT NULL,
[roleID] [int] NOT NULL,
[propertyName] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[propertyValue] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ToolRolePropertySetting] ADD CONSTRAINT [pk_toolrolepropertysetting] PRIMARY KEY CLUSTERED ([toolID], [roleID], [propertyName]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ToolRolePropertySetting] ADD CONSTRAINT [fk_trps_r] FOREIGN KEY ([roleID]) REFERENCES [dbo].[Roles] ([roleID])
GO
ALTER TABLE [dbo].[ToolRolePropertySetting] ADD CONSTRAINT [fk_trps_t] FOREIGN KEY ([toolID]) REFERENCES [dbo].[Tools] ([toolID])
GO
Uses