REVENUEOFFLINEDONATION (4.0SP22)

Participant Offline Donation

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CLIENTUSERSID

int

false

userid of the client

EVENTID

uniqueidentifier

true

Foreign Key to EVENT table

REGISTRANTID

uniqueidentifier

true

Foreign Key to REGISTRANT table

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

ADDRESSBOOKFAFID

uniqueidentifier

true

Non required Foreign Key ID from ADDRESSBOOKFAF Table

DONORNAME

nvarchar(255)

false

''

Donor name to aknowledgee

AMOUNT

money

false

0

Donation Amount

PAYMENTTYPECODE

tinyint

false

0

Payment type can be: Check or Cash

CHECKNUMBER

nvarchar(20)

false

''

Check Number

EXPECTEDDATE

datetime

true

Expected Donation Date

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.

PAYMENTTYPE

nvarchar(5) (Computed)

true

Provides a translation for the 'PAYMENTTYPECODE' field.

LOCALCORPNAME

nvarchar(20)

false

'none'

Type of payment processor selected if available

Indexes
Index Name Field(s) Unique Primary Clustered

IX_REVENUEOFFLINEDONATION_CLIENTUSERSID

CLIENTUSERSID

False

False

False

IX_REVENUEOFFLINEDONATION_DATEADDED

DATEADDED

False

False

True

IX_REVENUEOFFLINEDONATION_DATECHANGED

DATECHANGED

False

False

False

PK_REVENUEOFFLINEDONATION

ID

True

True

False

Triggers
Trigger Name Description

TR_REVENUEOFFLINEDONATION_AUDIT_UPDATE

TR_REVENUEOFFLINEDONATION_AUDIT_DELETE