MEMBERSHIPLEVELTERM
This table holds the terms for a specific membership level.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| TERMCODE |
tinyint |
|
Default = 0 |
The term for this membership level. |
| AMOUNT |
money |
|
Default = 0 |
The cost for the specific membership level term. |
| SEQUENCE |
int |
|
Default = 0 |
The sequence of terms for the level. |
| 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. |
| TERM |
nvarchar(8) (Computed) |
yes |
CASE [TERMCODE] WHEN 0 THEN N'1 year' WHEN 1 THEN N'2 years' WHEN 2 THEN N'3 years' WHEN 3 THEN N'4 years' WHEN 4 THEN N'5 years' WHEN 5 THEN N'10 years' WHEN 6 THEN N'Lifetime' END |
Provides a translation for the 'TERMCODE' field. |
| ORGANIZATIONAMOUNT |
money |
|
Default = 0 |
Amount in organization currency. |
| TERMTIMELENGTH |
smallint |
|
Default = ((1)) |
|
| TERMLENGTHCODE |
tinyint |
|
Default = 1 |
|
| TERMLENGTH |
nvarchar(8) (Computed) |
yes |
CASE [TERMLENGTHCODE] WHEN 0 THEN N'month(s)' WHEN 1 THEN N'year(s)' END |
|
| LOWAMOUNT |
money |
|
Default = 0 |
|
| ORGANIZATIONLOWAMOUNT |
money |
|
Default = 0 |
|
| RECURRINGPAYMENTOPTIONCODE |
tinyint |
|
Default = 0 |
|
| RECURRINGPAYMENTOPTION |
nvarchar(13) (Computed) |
yes |
CASE [RECURRINGPAYMENTOPTIONCODE] WHEN 0 THEN N'Annually' WHEN 1 THEN N'Semi-annually' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Monthly' END |
|
| LIFETIMEPAYMENTOPTIONCODE |
tinyint |
|
Default = 0 |
|
| LIFETIMEPAYMENTOPTION |
nvarchar(11) (Computed) |
yes |
CASE [LIFETIMEPAYMENTOPTIONCODE] WHEN 0 THEN N'Pay in full' WHEN 1 THEN N'Monthly' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Yearly' END |
|
| LIFETIMENUMBEROFPAYMENTS |
smallint |
|
Default = ((0)) |
|
| ISACTIVE |
bit |
|
Default = 1 |
|
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| LEVELID |
uniqueidentifier |
|
MEMBERSHIPLEVEL.ID
|
The membership level for these terms. |
| 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 amount to organization amount. |
| BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this gift fee structure. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_MEMBERSHIPLEVELTERM_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_MEMBERSHIPLEVELTERM_DATEADDED |
DATEADDED |
|
|
yes |
| IX_MEMBERSHIPLEVELTERM_DATECHANGED |
DATECHANGED |
|
|
|
| IX_MEMBERSHIPLEVELTERM_LEVELID |
LEVELID |
|
|
|
| IX_MEMBERSHIPLEVELTERM_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
| PK_MEMBERSHIPLEVELTERM |
ID |
yes |
yes |
|
Triggers
Referenced by