Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 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.
 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.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   RECEIVABLEPAYMENT.ID Primary Key.
 CONSTITUENTACCOUNTID uniqueidentifier CONSTITUENTACCOUNT.ID Link to constituent account information.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_RECEIVABLEPAYMENTDIRECTDEBIT_DATEADDED DATEADDED    
 IX_RECEIVABLEPAYMENTDIRECTDEBIT_DATECHANGED DATECHANGED      
 PK_RECEIVABLEPAYMENTDIRECTDEBIT ID  

Trigger Name Description
 TR_RECEIVABLEPAYMENTDIRECTDEBIT_RECEIVABLEPAYMENTTYPECORRECT
 TR_RECEIVABLEPAYMENTDIRECTDEBIT_AUDIT_UPDATE
 TR_RECEIVABLEPAYMENTDIRECTDEBIT_AUDIT_DELETE

Entity-Relationship diagram of this table