| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
QUANTITY |
int | Default = 0 | Number of benefits | |
UNITVALUE |
money | Default = 0 | Cost or percentage of the benefit | |
DETAILS |
nvarchar(255) | Default = '' | Comments | |
SEQUENCE |
int | Default = 0 | ||
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
USEPERCENT |
bit | Default = 0 | ||
VALUEPERCENT |
decimal(20, 2) | Default = 0 | ||
ORGANIZATIONUNITVALUE |
money | Default = 0 | Unit value in organization currency. | |
FREQUENCYCODE |
tinyint | Default = 1 | ||
NUMBERTOOFFERCODE |
tinyint | Default = 1 | ||
NUMBERTOOFFER |
nvarchar(20) (Computed) | ![]() |
CASE [NUMBERTOOFFERCODE] WHEN 0 THEN N'Base on # of members' WHEN 1 THEN N'specific number' END | |
FREQUENCY |
nvarchar(17) (Computed) | ![]() |
CASE [FREQUENCYCODE] WHEN 0 THEN N'Every renewal' WHEN 1 THEN N'Initially joining' END |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
MEMBERSHIPLEVELID |
uniqueidentifier | MEMBERSHIPLEVEL.ID | The membership level for this benefit record. | |
BENEFITID |
uniqueidentifier | BENEFIT.ID | The benefit for this record. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert from unit value to organization unit value. |
BASECURRENCYID |
uniqueidentifier | ![]() |
CURRENCY.ID | The base currency associated with this membership level benefit. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_MEMBERSHIPLEVELBENEFIT_BASECURRENCYID |
BASECURRENCYID | |||
IX_MEMBERSHIPLEVELBENEFIT_BENEFITID |
BENEFITID | |||
IX_MEMBERSHIPLEVELBENEFIT_DATEADDED |
DATEADDED | ![]() |
||
IX_MEMBERSHIPLEVELBENEFIT_DATECHANGED |
DATECHANGED | |||
IX_MEMBERSHIPLEVELBENEFIT_MEMBERSHIPLEVELID |
MEMBERSHIPLEVELID | |||
IX_MEMBERSHIPLEVELBENEFIT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID | |||
PK_MEMBERSHIPLEVELBENEFIT |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_MEMBERSHIPLEVELBENEFIT_AUDIT_UPDATE |
|
TR_MEMBERSHIPLEVELBENEFIT_AUDIT_DELETE |
|
TR_MEMBERSHIPLEVELBENEFIT_INSERTUPDATE_CURRENCY |

ID
QUANTITY
TSLONG
MEMBERSHIPLEVELID
IX_MEMBERSHIPLEVELBENEFIT_BASECURRENCYID
IX_MEMBERSHIPLEVELBENEFIT_DATEADDED