SYSTEMROLEPERM_CODETABLEENTRY

System permissions for code table entries.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

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.

Indexes

Index Name Fields Unique Primary Clustered
IX_SYSTEMROLEPERM_CODETABLEENTRY_CODETABLECATALOGID CODETABLECATALOGID
IX_SYSTEMROLEPERM_CODETABLEENTRY_CODETABLEENTRYID CODETABLEENTRYID
IX_SYSTEMROLEPERM_CODETABLEENTRY_DATEADDED DATEADDED yes
IX_SYSTEMROLEPERM_CODETABLEENTRY_DATECHANGED DATECHANGED
PK_SYSTEMROLEPERM_CODETABLEENTRY ID yes yes
UIX_SYSTEMROLEPERM_CODETABLEENTRY_SYSTEMROLEID_CODETABLEENTRYID SYSTEMROLEID, CODETABLEENTRYID yes

Triggers

Trigger Name Description
TR_SYSTEMROLEPERM_CODETABLEENTRY_AUDIT_UPDATE
TR_SYSTEMROLEPERM_CODETABLEENTRY_AUDIT_DELETE