Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 REFERENCENUMBER nvarchar(20)   Default = '' The reference number for this record.
 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.
 CLASSIFICATIONCODE tinyint   Default = 0 The tax classification for this record.
 WAITINGPERIOD smallint   Default = ((30)) The waiting period for this record.
 CLASSIFICATION nvarchar(7) (Computed) CASE [CLASSIFICATIONCODE] WHEN 0 THEN N'Trust' WHEN 1 THEN N'Company' END Provides a translation for the 'CLASSIFICATIONCODE' field.
 DESCRIPTION nvarchar(50)   Default = '' Description for this record.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_CHARITYCLAIMREFERENCENUMBER_DATEADDED DATEADDED    
 IX_CHARITYCLAIMREFERENCENUMBER_DATECHANGED DATECHANGED      
 PK_CHARITYCLAIMREFERENCENUMBER ID  
 UC_CHARITYCLAIMREFERENCENUMBER_REFERENCENUMBER REFERENCENUMBER    

Trigger Name Description
 TR_CHARITYCLAIMREFERENCENUMBER_AUDIT_UPDATE
 TR_CHARITYCLAIMREFERENCENUMBER_AUDIT_DELETE

Referenced by Field
 BATCHCONSTITUENTTAXDECLARATION CHARITYCLAIMREFERENCENUMBERID
 BATCHREVENUETAXDECLARATION CHARITYCLAIMREFERENCENUMBERID
 CHARITYCLAIMREFERENCENUMBERSITE CHARITYCLAIMREFERENCENUMBERID
 R68ONLINESUBMISSIONSETTINGS CCRNID
 TAXDECLARATION CHARITYCLAIMREFERENCENUMBERID

Entity-Relationship diagram of this table