REVENUERECOGNITIONDEFAULT

Stores recognition defaulting between constituents.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MATCHFACTOR decimal(5, 2) Default = 0
STARTDATE datetime yes
ENDDATE datetime yes
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.
PREVENTRECOGNITIONSDEFAULTING bit Default = 0 Used when a household's recognition settings causes a recognition default between two constituents but the user wants to prevent the defaulting.

Foreign Keys

Foreign Key Field Type Null Notes Description
SOURCECONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
RECIPIENTCONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
REVENUERECOGNITIONTYPECODEID uniqueidentifier yes REVENUERECOGNITIONTYPECODE.ID FK to REVENUERECOGNITIONTYPECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_REVENUERECOGNITIONDEFAULT_DATEADDED DATEADDED yes
IX_REVENUERECOGNITIONDEFAULT_DATECHANGED DATECHANGED
PK_REVENUERECOGNITIONDEFAULT ID yes yes
UIX_REVENUERECOGNITIONDEFAULT_SOURCECONSTITUENTID_RECIPIENTCONSTITUENTID SOURCECONSTITUENTID, RECIPIENTCONSTITUENTID yes

Triggers

Trigger Name Description
TR_REVENUERECOGNITIONDEFAULT_AUDIT_UPDATE
TR_REVENUERECOGNITIONDEFAULT_AUDIT_DELETE