MKTSEGMENTWHITEMAILCACHE

Caches calculations pertaining to a white mail segment's performance.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
RESPONDERS int Default = 0 The number of people whose responses are attributed to the white mail segment.
RESPONSES int Default = 0 The number of gifts attributed to the white mail segment.
TOTALGIFTAMOUNT money Default = 0 The total amount of gifts attributed to the white mail segment, stored in its base currency.
AVERAGEGIFTAMOUNT money Default = 0 The average amount of gifts attributed to the white mail segment, stored in its base currency.
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.
ORGANIZATIONTOTALGIFTAMOUNT money Default = 0 The total amount of gifts attributed to the white mail segment, stored in the organization currency.
ORGANIZATIONAVERAGEGIFTAMOUNT money Default = 0 The average amount of gifts attributed to the white mail segment, stored in the organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier MKTSEGMENTWHITEMAIL.ID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this white mail segment.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTSEGMENTWHITEMAILCACHE_AVERAGEGIFTAMOUNT AVERAGEGIFTAMOUNT
IX_MKTSEGMENTWHITEMAILCACHE_BASECURRENCYID BASECURRENCYID
IX_MKTSEGMENTWHITEMAILCACHE_DATEADDED DATEADDED yes
IX_MKTSEGMENTWHITEMAILCACHE_DATECHANGED DATECHANGED
IX_MKTSEGMENTWHITEMAILCACHE_RESPONDERS RESPONDERS
IX_MKTSEGMENTWHITEMAILCACHE_RESPONSES RESPONSES
IX_MKTSEGMENTWHITEMAILCACHE_TOTALGIFTAMOUNT TOTALGIFTAMOUNT
PK_MKTSEGMENTWHITEMAILCACHE ID yes yes

Triggers

Trigger Name Description
TR_MKTSEGMENTWHITEMAILCACHE_INSERTUPDATE_CURRENCY
TR_MKTSEGMENTWHITEMAILCACHE_AUDIT_UPDATE
TR_MKTSEGMENTWHITEMAILCACHE_AUDIT_DELETE