GIFTFEEPAYMENTMETHOD

This table contains payment methods that are excluded from gift fees

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PAYMENTMETHODCODE tinyint Default = 0 The method of payment in which the revenue was received.
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.
PAYMENTMETHOD nvarchar(14) (Computed) yes CASE [PAYMENTMETHODCODE] WHEN 0 THEN N'Cash' WHEN 1 THEN N'Check' WHEN 2 THEN N'Credit card' WHEN 3 THEN N'Direct debit' WHEN 4 THEN N'Stock' WHEN 5 THEN N'Property' WHEN 6 THEN N'Gift-in-kind' WHEN 8 THEN N'Sold property' WHEN 9 THEN N'None' WHEN 10 THEN N'Other' WHEN 11 THEN N'Standing order' END Provides a translation for the 'PAYMENTMETHODCODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_GIFTFEEPAYMENTMETHOD_DATEADDED DATEADDED yes
IX_GIFTFEEPAYMENTMETHOD_DATECHANGED DATECHANGED
PK_GIFTFEEPAYMENTMETHOD ID yes yes

Triggers

Trigger Name Description
TR_GIFTFEEPAYMENTMETHOD_AUDIT_UPDATE
TR_GIFTFEEPAYMENTMETHOD_AUDIT_DELETE