Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' Name of the letter code.
 DESCRIPTION nvarchar(255)   Default = '' Description for the letter code.
 WORDTEMPLATEFILENAME nvarchar(255)   Default = '' Filename of the word template to use for this letter.
 WORDFILE varbinary The actual template file to use for this letter.
 ISACTIVE bit   Default = 1 Indicates whether or not the letter code is active.
 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.
 CUSTOMPARAMETERDATAFORMITEM xml Custom parameters for the letter code.

Foreign Key Field Type Null Notes Description
 QUERYVIEWID uniqueidentifier QUERYVIEWCATALOG.ID A foreign key to the query view used for this letter.
 IDSETREGISTERID uniqueidentifier IDSETREGISTER.ID A foreign key to the ID set that will be associated with this letter code.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 EXPORTDEFINITIONID uniqueidentifier EXPORTDEFINITION.ID A foreign key to the export definition used for this letter.

Index Name Field(s) Unique Primary Clustered
 IX_PLANNEDGIFTLETTERCODE_DATEADDED DATEADDED    
 IX_PLANNEDGIFTLETTERCODE_DATECHANGED DATECHANGED      
 PK_PLANNEDGIFTLETTERCODE ID  
 UC_PLANNEDGIFTLETTERCODE_NAME NAME    

Trigger Name Description
 TR_PLANNEDGIFTLETTERCODE_AUDIT_UPDATE
 TR_PLANNEDGIFTLETTERCODE_AUDIT_DELETE

Referenced by Field
 ASSIGNPLANNEDGIFTLETTERCODESPROCESSLETTERCODES PLANNEDGIFTLETTERCODEID
 PLANNEDGIFTACKNOWLEDGEMENTPROCESS PLANNEDGIFTLETTERCODEID
 PLANNEDGIFTLETTER PLANNEDGIFTLETTERCODEID
 PLANNEDGIFTLETTERCODESITE PLANNEDGIFTLETTERCODEID

Entity-Relationship diagram of this table