NETCOMMUNITYMAPPINGRULE

Stores the mapping rules used to download data for a Blackbaud Internet Solutions transaction processor.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MAPPINGTYPECODE tinyint Default = 0 Indicates the type of mapping (specific to the type of processor that is the parent for this record).
SEQUENCE int Default = 0
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.
NAME nvarchar(100) Default = '' Name of the batch assignment.
MAPPINGTYPE nvarchar(18) (Computed) yes CASE [MAPPINGTYPECODE] WHEN 0 THEN N'Default' WHEN 1 THEN N'Constituent' WHEN 2 THEN N'Page ID' WHEN 3 THEN N'Designation' WHEN 4 THEN N'Appeal' WHEN 5 THEN N'Solicitor' WHEN 6 THEN N'Event' WHEN 7 THEN N'Membership program' WHEN 8 THEN N'Primary member' WHEN 9 THEN N'BBIS Site' END Provides a translation for the 'MAPPINGTYPECODE' field.
INCLUDETRANSACTIONTYPECODE tinyint Default = 0
INCLUDETRANSACTIONTYPE nvarchar(11) (Computed) yes CASE [INCLUDETRANSACTIONTYPECODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Signup' WHEN 2 THEN N'Acquisition' WHEN 3 THEN N'All' END

Foreign Keys

Foreign Key Field Type Null Notes Description
NETCOMMUNITYTRANSACTIONPROCESSORID uniqueidentifier NETCOMMUNITYTRANSACTIONPROCESSOR.ID FK to NETCOMMUNITYTRANSACTIONPROCESSOR
SELECTIONID uniqueidentifier yes IDSETREGISTER.ID The selection to use for mapping from Blackbaud Internet Solutions to BBEC.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CONSTIT_SECURITY_ATTRIBUTEID uniqueidentifier yes CONSTIT_SECURITY_ATTRIBUTE.ID The default constituent security group that all created constituents will belong to when processed by this rule.
DEFAULTTRIBUTEID uniqueidentifier yes TRIBUTE.LOCALID The tribute to default onto donation transactions
SITEID uniqueidentifier yes SITE.ID The default site that all created constituents will belong to when processed by this rule.
DEFAULTPDACCOUNTSYSTEMID uniqueidentifier yes PDACCOUNTSYSTEM.ID FK to PDACCOUNTSYSTEM
ATTRIBUTECURRENCYID uniqueidentifier yes CURRENCY.ID FK to CURRENCY
BATCHTEMPLATEID uniqueidentifier yes BATCHTEMPLATE.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_NETCOMMUNITYMAPPINGRULE_DATEADDED DATEADDED yes
IX_NETCOMMUNITYMAPPINGRULE_DATECHANGED DATECHANGED
IX_NETCOMMUNITYMAPPINGRULE_NETCOMMUNITYTRANSACTIONPROCESSORID NETCOMMUNITYTRANSACTIONPROCESSORID
PK_NETCOMMUNITYMAPPINGRULE ID yes yes

Triggers

Trigger Name Description
TR_NETCOMMUNITYMAPPINGRULE_AUDIT_UPDATE
TR_NETCOMMUNITYMAPPINGRULE_AUDIT_DELETE

Referenced by

Referenced by Field
NETCOMMUNITYBATCHPROCESSORSPLITMAPPING NETCOMMUNITYPARENTMAPPINGRULEID
NETCOMMUNITYBATCHPROCESSORSPLITMAPPING NETCOMMUNITYMAPPINGRULEID
NETCOMMUNITYMAPPINGRULEBATCH MAPPINGRULEID
NETCOMMUNITYMAPPINGRULEOWNER NETCOMMUNITYMAPPINGRULEID
NETCOMMUNITYMAPPINGRULEPAGEID NETCOMMUNITYMAPPINGRULEID
NETCOMMUNITYMAPPINGRULESITEID NETCOMMUNITYMAPPINGRULEID