BATCHREVENUEAPPLICATIONMEMBERSHIP (4.0SP20)

Stores information about memberships records added during the revenue batch process.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

MEMBERSHIPPROGRAMID

uniqueidentifier

false

The membership program of this record.

MEMBERSHIPLEVELID

uniqueidentifier

false

FK to MEMBERSHIPLEVEL

MEMBERSHIPLEVELTERMID

uniqueidentifier

false

FK to MEMBERSHIPLEVELTERM

MEMBERSHIPLEVELTYPECODEID

uniqueidentifier

true

The type of membership.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

MEMBERSHIPID

uniqueidentifier

true

Indicates the membership to which a payment is being applied.

NUMBEROFCHILDREN

smallint

false

((0))

The number of children allowed on this membership.

COMMENTS

nvarchar(1000)

false

''

Remarks about this membership.

ISGIFT

bit

false

0

Denotes that this membership is a gift.

SENDRENEWALCODE

tinyint

false

1

Specifies who to send renewals if this membership is a gift.

SENDRENEWAL

nvarchar(24) (Computed)

true

Provides a translation for the 'SENDRENEWALCODE' field.

GIVENBYID

uniqueidentifier

true

The constituent that is responsible for giving the membership as a gift.

JOINDATE

datetime

true

The join date of this membership.

EXPIRATIONDATE

datetime

true

The expiration date of this membership.

LASTRENEWEDON

datetime

true

The date this membership was last renewed.

STATUSCODE

tinyint

false

0

The status of the membership: 0 - Active, 2 - Pending

STATUS

nvarchar(7) (Computed)

true

Provides a translation for the 'STATUSCODE' field.

MEMBERS

xml

true

XML collection of members for this membership.

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.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_DATEADDED

DATEADDED

False

False

True

IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_DATECHANGED

DATECHANGED

False

False

False

IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_GIVENBYID

GIVENBYID

False

False

False

PK_BATCHREVENUEAPPLICATIONMEMBERSHIP

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHREVENUEAPPLICATIONMEMBERSHIP_AUDIT_UPDATE

TR_BATCHREVENUEAPPLICATIONMEMBERSHIP_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHREVENUEAPPLICATION

BATCHREVENUEAPPLICATIONMEMBERSHIPID

BATCHREVENUEAPPLICATIONMEMBERSHIPMEMBER

BATCHREVENUEAPPLICATIONMEMBERSHIPID