EVENTPRICEBENEFIT
Contains information relating event benefits with event prices.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| UNITVALUE |
money |
|
Default = 0 |
The unit cost or percent of donation amount for this benefit item. |
| QUANTITY |
int |
|
Default = 0 |
The number of benefit items associated with this detail record. |
| TOTALVALUE |
money |
|
Default = 0 |
The total cost of the benefit item(s). |
| DETAILS |
nvarchar(255) |
|
Default = '' |
Comments |
| 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. |
| ORGANIZATIONTOTALVALUE |
money |
|
Default = 0 |
The total value in the organization currency. |
| EVENTBASECURRENCYTOTALVALUE |
money |
|
Default = 0 |
The total benefit value expressed in the currency of the event. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| EVENTPRICEID |
uniqueidentifier |
|
EVENTPRICE.ID
|
The event price to which this benefits belongs. |
| BENEFITID |
uniqueidentifier |
|
BENEFIT.ID
|
The benefit related to the event price. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with the benefit. |
| ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert to the organization amount. |
| BASEEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert the total value to the currency of the event. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_EVENTPRICEBENEFIT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_EVENTPRICEBENEFIT_BASEEXCHANGERATEID |
BASEEXCHANGERATEID |
|
|
|
| IX_EVENTPRICEBENEFIT_BENEFITID |
BENEFITID |
|
|
|
| IX_EVENTPRICEBENEFIT_DATEADDED |
DATEADDED |
|
|
yes |
| IX_EVENTPRICEBENEFIT_DATECHANGED |
DATECHANGED |
|
|
|
| IX_EVENTPRICEBENEFIT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
| PK_EVENTPRICEBENEFIT |
ID |
yes |
yes |
|
Triggers