WEALTHCAPACITY

Contains giving wealth information for a constituent.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MAJORGIVINGCAPACITYVALUE money Default = 0 The Major Giving Capacity value.
CONFIRMED bit Default = 0 Indicates that the wealth capacity is confirmed and locked.
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.
SYSTEMCALCULATED bit Default = 1 The system has generated the wealth capacity values.
ESTIMATEDWEALTHVALUE money Default = 0 The Estimated Wealth value.
MAJORGIVINGCAPACITYBASISVALUE nvarchar(250) Default = ''

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier CONSTITUENT.LOCALID Primary Key.
ESTIMATEDWEALTHID uniqueidentifier yes ESTIMATEDWEALTH.ID FK to ESTIMATEDWEALTH
OVERALLRATINGCODEID uniqueidentifier yes OVERALLRATINGCODE.ID FK to OVERALLRATINGCODE
MAJORGIVINGCAPACITYID uniqueidentifier yes MAJORGIVINGCAPACITY.ID FK to MAJORGIVINGCAPACITY
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
WEALTHCAPACITYFORMULAID uniqueidentifier yes WEALTHCAPACITYFORMULA.ID The foreign key to the wealth capacity formula assigned to the user.

Indexes

Index Name Fields Unique Primary Clustered
IX_WEALTHCAPACITY_DATEADDED DATEADDED yes
IX_WEALTHCAPACITY_DATECHANGED DATECHANGED
IX_WEALTHCAPACITY_ID_ESTIMATEDWEALTHID_MAJORGIVINGCAPACITYID ID, ESTIMATEDWEALTHID, MAJORGIVINGCAPACITYID
PK_WEALTHCAPACITY ID yes yes

Triggers

Trigger Name Description
TR_WEALTHCAPACITY_AUDIT_UPDATE
TR_WEALTHCAPACITY_AUDIT_DELETE