Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 PRIORITYCODE tinyint   Default = 0 0=Primary beneficiary, 1=Secondary beneficiary, 2=Tertiary beneficiary
 SEQUENCE int   Default = 0
 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.
 PRIORITY nvarchar(21) (Computed) CASE [PRIORITYCODE] WHEN 0 THEN N'Primary beneficiary' WHEN 1 THEN N'Secondary beneficiary' WHEN 2 THEN N'Tertiary beneficiary' END Provides a translation for the 'PRIORITYCODE' field.

Foreign Key Field Type Null Notes Description
 PLANNEDGIFTID uniqueidentifier   PLANNEDGIFT.ID FK to PLANNEDGIFT
 BENEFICIARYTYPECODEID uniqueidentifier BENEFICIARYTYPECODE.ID FK to BENEFICIARYTYPECODE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 BENEFICIARYCONSTITUENTID uniqueidentifier   CONSTITUENT.LOCALID FK to CONSTITUENT

Index Name Field(s) Unique Primary Clustered
 IX_PLANNEDGIFTBENEFICIARY_DATEADDED DATEADDED    
 IX_PLANNEDGIFTBENEFICIARY_DATECHANGED DATECHANGED      
 PK_PLANNEDGIFTBENEFICIARY ID  
 UIX_PLANNEDGIFTBENEFICIARY_PLANNEDGIFTID_BENEFICIARYCONSTITUENTID PLANNEDGIFTID, BENEFICIARYCONSTITUENTID    

Trigger Name Description
 TR_PLANNEDGIFTBENEFICIARY_AUDIT_UPDATE
 TR_PLANNEDGIFTBENEFICIARY_AUDIT_DELETE

Entity-Relationship diagram of this table