BATCHREVENUECONSTITUENTGROUPMEMBER

Stores group members for groups/households added to revenue 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 BATCHREVENUECONSTITUENT.ID The ID of the batch revenue constituent group record
MEMBERID uniqueidentifier BATCHREVENUECONSTITUENT.ID The ID of the batch revenue 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_BATCHREVENUECONSTITUENTGROUPMEMBER_DATEADDED DATEADDED yes
IX_BATCHREVENUECONSTITUENTGROUPMEMBER_DATECHANGED DATECHANGED
IX_BATCHREVENUECONSTITUENTGROUPMEMBER_GROUPID_MEMBERID GROUPID, MEMBERID
IX_BATCHREVENUECONSTITUENTGROUPMEMBER_MEMBERID_GROUPID MEMBERID, GROUPID
PK_BATCHREVENUECONSTITUENTGROUPMEMBER ID yes yes

Triggers

Trigger Name Description
TR_BATCHREVENUECONSTITUENTGROUPMEMBER_AUDIT_UPDATE
TR_BATCHREVENUECONSTITUENTGROUPMEMBER_AUDIT_DELETE