WPRELATIONSHIP_NPA

Contains WealthPoint Nonprofit Affiliation Relationship information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
EIN nvarchar(30) Default = ''
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.
EXECCOUNT int Default = 0

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CONSTITUENTID uniqueidentifier yes CONSTITUENT.LOCALID FK to CONSTITUENT

Indexes

Index Name Fields Unique Primary Clustered
IX_WPRELATIONSHIP_NPA_CONSTITUENTID CONSTITUENTID
IX_WPRELATIONSHIP_NPA_DATEADDED DATEADDED yes
IX_WPRELATIONSHIP_NPA_DATECHANGED DATECHANGED
IX_WPRELATIONSHIP_NPA_EIN EIN
PK_WPRELATIONSHIP_NPA ID yes yes

Triggers

Trigger Name Description
TR_WPRELATIONSHIP_NPA_AUDIT_UPDATE
TR_WPRELATIONSHIP_NPA_AUDIT_DELETE

Referenced by

Referenced by Field
WPNONPROFITAFFILIATION WPRELATIONSHIP_NPA_ID
WPRELATIONSHIP_NPA_IND WPRELATIONSHIP_NPA_ID