AuditRecords


Columns

Column Type Size Nulls Auto Default Children Parents Comments
Id int identity 4 null
RecordTypeId int 4 null
RecordTypes.Id FK_dbo.AuditRecords_dbo.RecordTypes_RecordTypeIdC
RecordId int 4 null
ActionId int 4 null
AuditActions.Id FK_dbo.AuditRecords_dbo.AuditActions_ActionIdC
UserId nvarchar 1073741823 null
ActionDateTime datetime 16,3 null
ReferralId int 4 null
Referrals.Id FK_dbo.AuditRecords_dbo.Referrals_ReferralIdR

Indexes

Constraint Name Type Sort Column(s)
PK_dbo.AuditRecords Primary key Asc Id
ByTypeThenIdThenDate Performance Asc/Asc/Asc RecordTypeId + RecordId + ActionDateTime
IX_ActionId Performance Asc ActionId
IX_ReferralId Performance Asc ReferralId

Relationships