REVENUEPAYMENTMETHOD
Stores payment information for a revenue item
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. |
AMOUNT |
money |
|
Default = 0 |
Amount of gift |
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 9 THEN N'None' WHEN 10 THEN N'Other' WHEN 11 THEN N'Standing order' WHEN 101 THEN N'PayPal' WHEN 102 THEN N'Venmo' END |
|
Foreign Keys
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_REVENUEPAYMENTMETHOD_DATEADDED |
DATEADDED |
|
|
yes |
IX_REVENUEPAYMENTMETHOD_DATECHANGED |
DATECHANGED |
|
|
|
IX_REVENUEPAYMENTMETHOD_PAYMENTMETHODCODE_ADDEDBYID |
PAYMENTMETHODCODE, ADDEDBYID |
|
|
|
PK_REVENUEPAYMENTMETHOD |
ID |
yes |
yes |
|
UIX_REVENUEPAYMENTMETHOD_REVENUEID_PAYMENTMETHODCODE |
REVENUEID, PAYMENTMETHODCODE |
yes |
|
|
Triggers
Referenced by