REVENUESCHEDULEDIRECTDEBITPAYMENT (4.0SP20)

Stores direct debit detail information for a pledge or recurring gift record when the payment method is direct debit.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CONSTITUENTACCOUNTID

uniqueidentifier

true

FK to CONSTITUENTACCOUNT

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

DDISOURCECODEID

uniqueidentifier

true

UK only paperless mandates DDI source.

SEPAMANDATEID

uniqueidentifier

true

Fields
Field Field Type Null Notes Description

REFERENCEDATE

UDT_FUZZYDATE

false

'00000000'

The date that the reference was made.

REFERENCENUMBER

nvarchar(20)

false

''

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

DIRECTDEBITRESULTCODE

nvarchar(10)

false

''

The result code from a direct debit return file.

DDISOURCEDATE

date

true

UK only paperless mandates DDI source date.

SENDPMINSTRUCTION

bit

false

0

UK only Indicates that a paperless mandate instruction should be sent for this record.

PMINSTRUCTIONTOSENDCODE

tinyint

false

0

UK only indicates the paperless mandate instruction that should be sent for this record.

PMINSTRUCTIONTOSEND

nvarchar(6) (Computed)

true

Provides a translation for the 'PMINSTRUCTIONTOSENDCODE' field.

PMINSTRUCTIONDATE_NEW

date

true

UK only indicates the date that a new paperless mandate instruction was sent for this record.

PMINSTRUCTIONDATE_CANCEL

date

true

UK only indicates the date that a cancel paperless mandate instruction was sent for this record.

PMINSTRUCTIONDATE_SETUP

date

true

UK only indicates the date that a set-up paperless mandate instruction was sent for this record.

PMADVANCENOTICESENTDATE

date

true

UK only indicates the date that a paperless mandate advance notice was sent to the constituent for this record.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_REVENUESCHEDULEDIRECTDEBITPAYMENT_DATEADDED

DATEADDED

False

False

True

IX_REVENUESCHEDULEDIRECTDEBITPAYMENT_DATECHANGED

DATECHANGED

False

False

False

PK_REVENUESCHEDULEDIRECTDEBITPAYMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_REVENUESCHEDULEDIRECTDEBITPAYMENT_AUDIT_UPDATE

TR_REVENUESCHEDULEDIRECTDEBITPAYMENT_AUDIT_DELETE