MEMBERSHIPLEVELTERM (4.0SP17)

This table holds the terms for a specific membership level.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

LEVELID

uniqueidentifier

false

The membership level for these terms.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to organization amount.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this gift fee structure.

Fields
Field Field Type Null Notes Description

TERMCODE

tinyint

false

0

The term for this membership level.

AMOUNT

money

false

0

The cost for the specific membership level term.

SEQUENCE

int

false

0

The sequence of terms for the level.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

TERM

nvarchar(8) (Computed)

true

Provides a translation for the 'TERMCODE' field.

ORGANIZATIONAMOUNT

money

false

0

Amount in organization currency.

TERMTIMELENGTH

smallint

false

((1))

TERMLENGTHCODE

tinyint

false

1

TERMLENGTH

nvarchar(8) (Computed)

true

LOWAMOUNT

money

false

0

ORGANIZATIONLOWAMOUNT

money

false

0

RECURRINGPAYMENTOPTIONCODE

tinyint

false

0

RECURRINGPAYMENTOPTION

nvarchar(13) (Computed)

true

LIFETIMEPAYMENTOPTIONCODE

tinyint

false

0

LIFETIMEPAYMENTOPTION

nvarchar(11) (Computed)

true

LIFETIMENUMBEROFPAYMENTS

smallint

false

((0))

ISACTIVE

bit

false

1

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MEMBERSHIPLEVELTERM_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_MEMBERSHIPLEVELTERM_DATEADDED

DATEADDED

False

False

True

IX_MEMBERSHIPLEVELTERM_DATECHANGED

DATECHANGED

False

False

False

IX_MEMBERSHIPLEVELTERM_LEVELID

LEVELID

False

False

False

IX_MEMBERSHIPLEVELTERM_ORGANIZATIONEXCHANGERATEID

ORGANIZATIONEXCHANGERATEID

False

False

False

PK_MEMBERSHIPLEVELTERM

ID

True

True

False

Triggers
Trigger Name Description

TR_MEMBERSHIPLEVELTERM_INSERTUPDATE_CURRENCY

TR_MEMBERSHIPLEVELTERM_AUDIT_UPDATE

TR_MEMBERSHIPLEVELTERM_AUDIT_DELETE

TR_MEMBERSHIPLEVELTERM_AUDIT_ETLDELETEDID

Referenced by
Referenced by Field

BATCHBBNCMEMBERSHIP

MEMBERSHIPLEVELTERMID

BATCHMEMBERSHIPDUES

MEMBERSHIPLEVELTERMID

BATCHMEMBERSHIPTRANSACTION

MEMBERSHIPLEVELTERMID

BATCHREVENUEAPPLICATIONMEMBERSHIP

MEMBERSHIPLEVELTERMID

CREDITITEMMEMBERSHIP

MEMBERSHIPLEVELTERMID

DAILYSALEITEMMEMBERSHIP

MEMBERSHIPLEVELTERMID

MEMBERSHIP

MEMBERSHIPLEVELTERMID

MEMBERSHIPTRANSACTION

MEMBERSHIPLEVELTERMID

SALESORDERITEMMEMBERSHIP

MEMBERSHIPLEVELTERMID