MEMBERSHIPLEVELBENEFIT (4.0SP14)

Stores benefits for a membership level.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MEMBERSHIPLEVELID

uniqueidentifier

false

The membership level for this benefit record.

BENEFITID

uniqueidentifier

false

The benefit for this record.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from unit value to organization unit value.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this membership level benefit.

Fields
Field Field Type Null Notes Description

QUANTITY

int

false

0

Number of benefits

UNITVALUE

money

false

0

Cost or percentage of the benefit

DETAILS

nvarchar(255)

false

''

Comments

SEQUENCE

int

false

0

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.

USEPERCENT

bit

false

0

VALUEPERCENT

decimal(20, 2)

false

0

ORGANIZATIONUNITVALUE

money

false

0

Unit value in organization currency.

FREQUENCYCODE

tinyint

false

1

NUMBERTOOFFERCODE

tinyint

false

1

NUMBERTOOFFER

nvarchar(20) (Computed)

true

FREQUENCY

nvarchar(17) (Computed)

true

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MEMBERSHIPLEVELBENEFIT_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_MEMBERSHIPLEVELBENEFIT_BENEFITID

BENEFITID

False

False

False

IX_MEMBERSHIPLEVELBENEFIT_DATEADDED

DATEADDED

False

False

True

IX_MEMBERSHIPLEVELBENEFIT_DATECHANGED

DATECHANGED

False

False

False

IX_MEMBERSHIPLEVELBENEFIT_MEMBERSHIPLEVELID

MEMBERSHIPLEVELID

False

False

False

IX_MEMBERSHIPLEVELBENEFIT_ORGANIZATIONEXCHANGERATEID

ORGANIZATIONEXCHANGERATEID

False

False

False

PK_MEMBERSHIPLEVELBENEFIT

ID

True

True

False

Triggers
Trigger Name Description

TR_MEMBERSHIPLEVELBENEFIT_INSERTUPDATE_CURRENCY

TR_MEMBERSHIPLEVELBENEFIT_AUDIT_UPDATE

TR_MEMBERSHIPLEVELBENEFIT_AUDIT_DELETE