APPEALBENEFIT
This table contains the benefit levels for an appeal.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
AMOUNT |
money |
|
Default = 0 |
The minimum amount that qualifies to receive this benefit. |
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 minimum amount that qualifies to receive this benefit in organization currency. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
APPEALID |
uniqueidentifier |
|
APPEAL.LOCALID
|
The appeal record to which this benefit belongs. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert from goal to organization goal. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this appealbenefit. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_APPEALBENEFIT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
IX_APPEALBENEFIT_DATEADDED |
DATEADDED |
|
|
yes |
IX_APPEALBENEFIT_DATECHANGED |
DATECHANGED |
|
|
|
IX_APPEALBENEFIT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
PK_APPEALBENEFIT |
ID |
yes |
yes |
|
UIX_APPEALBENEFIT_APPEALID_AMOUNT |
APPEALID, AMOUNT |
yes |
|
|
Triggers
Referenced by