SYSTEMROLEPERM_CODETABLE (4.0SP20)

System permissions for CodeTableSpecs

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SYSTEMROLEID

uniqueidentifier

false

FK to SYSTEMROLE

CODETABLECATALOGID

uniqueidentifier

false

FK to CODETABLECATALOG

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

ADDPERMISSIONCODE

tinyint

false

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)

true

Provides a translation for the 'ADDPERMISSIONCODE' field.

UPDATEPERMISSIONCODE

tinyint

false

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)

true

Provides a translation for the 'UPDATEPERMISSIONCODE' field.

DELETEPERMISSIONCODE

tinyint

false

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)

true

Provides a translation for the 'DELETEPERMISSIONCODE' field.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SYSTEMROLEPERM_CODETABLE_CODETABLECATALOGID

CODETABLECATALOGID

False

False

False

IX_SYSTEMROLEPERM_CODETABLE_DATEADDED

DATEADDED

False

False

True

IX_SYSTEMROLEPERM_CODETABLE_DATECHANGED

DATECHANGED

False

False

False

PK_SYSTEMROLEPERM_CODETABLE

ID

True

True

False

UIX_SYSTEMROLEPERM_CODETABLE_SYSTEMROLEID_CODETABLECATALOGID

SYSTEMROLEID

CODETABLECATALOGID

True

False

False

Triggers
Trigger Name Description

TR_SYSTEMROLEPERM_CODETABLE_AUDIT_UPDATE

TR_SYSTEMROLEPERM_CODETABLE_AUDIT_DELETE