Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 CODETABLEENTRYID uniqueidentifier   ID of the code table entry for which permission has been assigned.
 ISDENIED bit   Default = 1 Specifies whether or not the code table entry is denied to the system role.
 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 System role ID for which permission has been assigned.
 CODETABLECATALOGID uniqueidentifier   CODETABLECATALOG.ID Code table ID where the code table entry comes from.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_SYSTEMROLEPERM_CODETABLEENTRY_CODETABLECATALOGID CODETABLECATALOGID      
 IX_SYSTEMROLEPERM_CODETABLEENTRY_CODETABLEENTRYID CODETABLEENTRYID      
 IX_SYSTEMROLEPERM_CODETABLEENTRY_DATEADDED DATEADDED    
 IX_SYSTEMROLEPERM_CODETABLEENTRY_DATECHANGED DATECHANGED      
 PK_SYSTEMROLEPERM_CODETABLEENTRY ID  
 UIX_SYSTEMROLEPERM_CODETABLEENTRY_SYSTEMROLEID_CODETABLEENTRYID SYSTEMROLEID, CODETABLEENTRYID    

Trigger Name Description
 TR_SYSTEMROLEPERM_CODETABLEENTRY_AUDIT_UPDATE
 TR_SYSTEMROLEPERM_CODETABLEENTRY_AUDIT_DELETE

Entity-Relationship diagram of this table