REVENUESCHEDULESTANDINGORDERPAYMENT

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

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 = ''
STANDINGORDERSETUP bit Default = 0 Determines whether the standing order is already setup.
STANDINGORDERSETUPDATE datetime yes
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier REVENUESCHEDULE.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.

Indexes

Index Name Fields Unique Primary Clustered
IX_REVENUESCHEDULESTANDINGORDERPAYMENT_DATEADDED DATEADDED yes
IX_REVENUESCHEDULESTANDINGORDERPAYMENT_DATECHANGED DATECHANGED
PK_REVENUESCHEDULESTANDINGORDERPAYMENT ID yes yes

Triggers

Trigger Name Description
TR_REVENUESCHEDULESTANDINGORDERPAYMENT_AUDIT_UPDATE
TR_REVENUESCHEDULESTANDINGORDERPAYMENT_AUDIT_DELETE