Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ADDPERMISSIONCODE tinyint   Default = 0 This field indicates whether or not the user has been granted or denied permission to add new entries to the given code table.
 ADDPERMISSION nvarchar(7) (Computed) CASE [ADDPERMISSIONCODE] WHEN 0 THEN N'Not Set' WHEN 1 THEN N'Granted' WHEN 2 THEN N'Denied' END Provides a translation for the 'ADDPERMISSIONCODE' field.
 UPDATEPERMISSIONCODE tinyint   Default = 0 This field indicates whether or not the user has been granted or denied permission to update existing entries in the given code table.
 UPDATEPERMISSION nvarchar(7) (Computed) CASE [UPDATEPERMISSIONCODE] WHEN 0 THEN N'Not Set' WHEN 1 THEN N'Granted' WHEN 2 THEN N'Denied' END Provides a translation for the 'UPDATEPERMISSIONCODE' field.
 DELETEPERMISSIONCODE tinyint   Default = 0 This field indicates whether or not the user has been granted or denied permission to delete entries from the given code table.
 DELETEPERMISSION nvarchar(7) (Computed) CASE [DELETEPERMISSIONCODE] WHEN 0 THEN N'Not Set' WHEN 1 THEN N'Granted' WHEN 2 THEN N'Denied' END Provides a translation for the 'DELETEPERMISSIONCODE' field.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 SYSTEMROLEID uniqueidentifier   SYSTEMROLE.ID FK to SYSTEMROLE
 CODETABLECATALOGID uniqueidentifier   CODETABLECATALOG.ID FK to CODETABLECATALOG
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_SYSTEMROLEPERM_CODETABLE_CODETABLECATALOGID CODETABLECATALOGID      
 IX_SYSTEMROLEPERM_CODETABLE_DATEADDED DATEADDED    
 IX_SYSTEMROLEPERM_CODETABLE_DATECHANGED DATECHANGED      
 PK_SYSTEMROLEPERM_CODETABLE ID  
 UIX_SYSTEMROLEPERM_CODETABLE_SYSTEMROLEID_CODETABLECATALOGID SYSTEMROLEID, CODETABLECATALOGID    

Trigger Name Description
 TR_SYSTEMROLEPERM_CODETABLE_AUDIT_UPDATE
 TR_SYSTEMROLEPERM_CODETABLE_AUDIT_DELETE

Entity-Relationship diagram of this table