Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 TABLENAME nvarchar(100)   Default = '' Table name of the record to check security against.
 COLUMNNAME nvarchar(100)   Default = '' Code table column name of the record to check security against.
 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
 RECORDTYPEID uniqueidentifier   RECORDTYPE.ID Type of the record to check security against.
 CODETABLECATALOGID uniqueidentifier   CODETABLECATALOG.ID Code table ID.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_CODETABLESECURITY_CODETABLECATALOGID CODETABLECATALOGID      
 IX_CODETABLESECURITY_DATEADDED DATEADDED    
 IX_CODETABLESECURITY_DATECHANGED DATECHANGED      
 IX_CODETABLESECURITY_RECORDTYPEID RECORDTYPEID      
 PK_CODETABLESECURITY ID  
 UIX_CODETABLESECURITY_TABLENAME_COLUMNNAME TABLENAME, COLUMNNAME    

Trigger Name Description
 TR_CODETABLESECURITY_AUDIT_UPDATE
 TR_CODETABLESECURITY_AUDIT_DELETE

Entity-Relationship diagram of this table