Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 SEQUENCE int   Default = 0
 COMMENTS nvarchar(1000)   Default = ''
 STATUSCODE tinyint   Default = 0 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.
 SENDRENEWALCODE tinyint   Default = 1 0=Giver, 1=Primary member, 2=Giver and primary member
 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.
 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
 BATCHID uniqueidentifier   BATCH.ID FK to BATCH
 MEMBERSHIPPROGRAMID uniqueidentifier   MEMBERSHIPPROGRAM.ID FK to MEMBERSHIPPROGRAM
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHMEMBERSHIP_DATEADDED DATEADDED    
 IX_BATCHMEMBERSHIP_DATECHANGED DATECHANGED      
 PK_BATCHMEMBERSHIP ID  

Trigger Name Description
 TR_BATCHMEMBERSHIP_AUDIT_UPDATE
 TR_BATCHMEMBERSHIP_AUDIT_DELETE

Referenced by Field
 BATCHMEMBERSHIPBATCHSYSTEMMESSAGES BATCHMEMBERSHIPID
 BATCHMEMBERSHIPBATCHUSERMESSAGE ID
 BATCHMEMBERSHIPMEMBER BATCHMEMBERSHIPID
 BATCHMEMBERSHIPTRANSACTION BATCHMEMBERSHIPID

Entity-Relationship diagram of this table