REVENUETRIBUTE
Stores information pertaining to revenue tributes.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| AMOUNT |
money |
|
Default = 0 |
The amount of the revenue tribute. |
| 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. |
| ORGANIZATIONAMOUNT |
money |
|
Default = 0 |
The amount of the revenue tribute in organization currency. |
| ISTRIBUTEANONYMOUS |
bit |
|
Default = 0 |
I would like to donation to remain anonymous |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| REVENUEID |
uniqueidentifier |
|
FINANCIALTRANSACTION.ID
|
The revenue corresponding to this record. |
| TRIBUTEID |
uniqueidentifier |
|
TRIBUTE.LOCALID
|
The tribute corresponding to this record. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this record. |
| ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from amount to organization amount. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_REVENUETRIBUTE_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_REVENUETRIBUTE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_REVENUETRIBUTE_DATECHANGED |
DATECHANGED |
|
|
|
| IX_REVENUETRIBUTE_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
| PK_REVENUETRIBUTE |
ID |
yes |
yes |
|
| UIX_REVENUETRIBUTE_REVENUEID_TRIBUTEID |
REVENUEID, TRIBUTEID |
yes |
|
|
Triggers
Referenced by