BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER

Stores group members for groups/households added to auction item 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 BATCHAUCTIONITEMCONSTITUENT.ID The ID of the batch auction item constituent group record
MEMBERID uniqueidentifier BATCHAUCTIONITEMCONSTITUENT.ID The ID of the batch auction item 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_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER_DATEADDED DATEADDED yes
IX_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER_DATECHANGED DATECHANGED
IX_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER_GROUPID_MEMBERID GROUPID, MEMBERID
IX_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER_MEMBERID_GROUPID MEMBERID, GROUPID
PK_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER ID yes yes

Triggers

Trigger Name Description
TR_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER_AUDIT_UPDATE
TR_BATCHAUCTIONITEMCONSTITUENTGROUPMEMBER_AUDIT_DELETE