Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 REFERENCEDATE UDT_FUZZYDATE   Default = '00000000' The date that the reference was made.
 REFERENCENUMBER nvarchar(20)   Default = ''
 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.
 DIRECTDEBITRESULTCODE nvarchar(10)   Default = '' The result code from a direct debit return file.
 ISREJECTED bit   Default = 0 Indicates that the direct debit payment was rejected by the financial institution.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   REVENUEPAYMENTMETHOD.ID Primary Key.
 CONSTITUENTACCOUNTID uniqueidentifier CONSTITUENTACCOUNT.ID FK to CONSTITUENTACCOUNT
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_DIRECTDEBITPAYMENTMETHODDETAIL_DATEADDED DATEADDED    
 IX_DIRECTDEBITPAYMENTMETHODDETAIL_DATECHANGED DATECHANGED      
 PK_DIRECTDEBITPAYMENTMETHODDETAIL ID  

Trigger Name Description
 TR_DIRECTDEBITPAYMENTMETHODDETAIL_AUDIT_UPDATE
 TR_DIRECTDEBITPAYMENTMETHODDETAIL_AUDIT_DELETE

Entity-Relationship diagram of this table