Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 MEMBERSHIPID uniqueidentifier Indicates the membership to which a payment is being applied.
 NUMBEROFCHILDREN smallint   Default = ((0)) The number of children allowed on this membership.
 COMMENTS nvarchar(1000)   Default = '' Remarks about this membership.
 ISGIFT bit   Default = 0 Denotes that this membership is a gift.
 SENDRENEWALCODE tinyint   Default = 1 Specifies who to send renewals if this membership is a gift.
 SENDRENEWAL nvarchar(24) (Computed) CASE [SENDRENEWALCODE] WHEN 0 THEN N'Giver' WHEN 1 THEN N'Primary member' WHEN 2 THEN N'Giver and primary member' END Provides a translation for the 'SENDRENEWALCODE' field.
 GIVENBYID uniqueidentifier The constituent that is responsible for giving the membership as a gift.
 JOINDATE datetime The join date of this membership.
 EXPIRATIONDATE datetime The expiration date of this membership.
 LASTRENEWEDON datetime The date this membership was last renewed.
 STATUSCODE tinyint   Default = 0 The status of the membership: 0 - Active, 2 - Pending
 STATUS nvarchar(7) (Computed) CASE [STATUSCODE] WHEN 0 THEN N'Active' WHEN 2 THEN N'Pending' END Provides a translation for the 'STATUSCODE' field.
 MEMBERS xml XML collection of members for this membership.
 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.

Foreign Key Field Type Null Notes Description
 MEMBERSHIPPROGRAMID uniqueidentifier   MEMBERSHIPPROGRAM.ID The membership program of this record.
 MEMBERSHIPLEVELID uniqueidentifier   MEMBERSHIPLEVEL.ID FK to MEMBERSHIPLEVEL
 MEMBERSHIPLEVELTERMID uniqueidentifier   MEMBERSHIPLEVELTERM.ID FK to MEMBERSHIPLEVELTERM
 MEMBERSHIPLEVELTYPECODEID uniqueidentifier MEMBERSHIPLEVELTYPECODE.ID The type of membership.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_DATEADDED DATEADDED    
 IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_DATECHANGED DATECHANGED      
 IX_BATCHREVENUEAPPLICATIONMEMBERSHIP_GIVENBYID GIVENBYID      
 PK_BATCHREVENUEAPPLICATIONMEMBERSHIP ID  

Trigger Name Description
 TR_BATCHREVENUEAPPLICATIONMEMBERSHIP_AUDIT_UPDATE
 TR_BATCHREVENUEAPPLICATIONMEMBERSHIP_AUDIT_DELETE

Referenced by Field
 BATCHREVENUEAPPLICATION BATCHREVENUEAPPLICATIONMEMBERSHIPID
 BATCHREVENUEAPPLICATIONMEMBERSHIPMEMBER BATCHREVENUEAPPLICATIONMEMBERSHIPID

Entity-Relationship diagram of this table