BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER

Stores group members for groups/households added to sponsorship batch.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
ISPRIMARY bit Default = 0 Indicates whether or not the group member is the primary contact for the group.
COPYMEMBERCONTACTINFOTOGROUP bit Default = 0 Indicates whether or not the member's contact info should be copied onto the group.
COPYGROUPCONTACTINFOTOMEMBER bit Default = 0 Indicates whether or not the group's contact info should be copied onto the member.
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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
GROUPID uniqueidentifier BATCHSPONSORSHIPCONSTITUENT.ID The ID of the batch SPONSORSHIP constituent group record
MEMBERID uniqueidentifier BATCHSPONSORSHIPCONSTITUENT.ID The ID of the batch SPONSORSHIP constituent member record
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER_DATEADDED DATEADDED yes
IX_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER_DATECHANGED DATECHANGED
IX_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER_GROUPID_MEMBERID GROUPID, MEMBERID
IX_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER_MEMBERID_GROUPID MEMBERID, GROUPID
PK_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER ID yes yes

Triggers

Trigger Name Description
TR_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER_AUDIT_UPDATE
TR_BATCHSPONSORSHIPCONSTITUENTGROUPMEMBER_AUDIT_DELETE