DIRECTDEBITPAYMENTMETHODDETAIL

Stores direct debit detail information for a revenue record when the payment method is direct debit.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

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) yes 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 Keys

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

Indexes

Index Name Fields Unique Primary Clustered
IX_DIRECTDEBITPAYMENTMETHODDETAIL_DATEADDED DATEADDED yes
IX_DIRECTDEBITPAYMENTMETHODDETAIL_DATECHANGED DATECHANGED
PK_DIRECTDEBITPAYMENTMETHODDETAIL ID yes yes

Triggers

Trigger Name Description
TR_DIRECTDEBITPAYMENTMETHODDETAIL_AUDIT_UPDATE
TR_DIRECTDEBITPAYMENTMETHODDETAIL_AUDIT_DELETE