RELATIONSHIP (3.0)

This table stores relationships for constituents.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

RELATIONSHIPCONSTITUENTID

uniqueidentifier

false

Stores the ID of the relationship constituent

RECIPROCALCONSTITUENTID

uniqueidentifier

false

Stores the ID of the reciprocal relationship constituent

RELATIONSHIPTYPECODEID

uniqueidentifier

false

Stores the relationship type for the relationship record

RECIPROCALTYPECODEID

uniqueidentifier

false

Stores the relationship type for the reciprocal relationship record

CONTACTTYPECODEID

uniqueidentifier

true

Stores the contact type for records marked as contacts

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

RELATIONSHIPSETID

uniqueidentifier

true

Stores the category of the job for this relationship

Fields
Field Field Type Null Notes Description

STARTDATE

datetime

true

Date that the relationship was established or became effective

ENDDATE

datetime

true

Date that the relationship was dissolved or ceased to be effective

ISSPOUSE

bit

false

0

Designates the relationship as a spouse record

ISPRIMARYBUSINESS

bit

false

0

Designates the relationship as a primary business record

ISCONTACT

bit

false

0

Designates the relationship as a contact record

POSITION

nvarchar(100)

false

''

Store the position value for records marked as contacts

ISMATCHINGGIFTRELATIONSHIP

bit

false

0

The organization in the relationship will match the individual's gifts.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ISPRIMARYCONTACT

bit

false

0

Indicates whether the contact is a primary contact

COMMENTS

nvarchar(max)

false

''

ISEMERGENCYCONTACT

bit

false

0

Indicates this relation is an emergency contact.

RECEIVESREPORTCARD

bit

false

0

Indicates this relation receives report cards for the student.

DESCRIPTION

nvarchar(700) (Computed)

true

Provides a translation field for the relationship record

Indexes
Index Name Field(s) Unique Primary Clustered

IX_RELATIONSHIP_DATEADDED

DATEADDED

False

False

True

IX_RELATIONSHIP_DATECHANGED

DATECHANGED

False

False

False

IX_RELATIONSHIP_RECIPROCALCONSTITUENTID

RECIPROCALCONSTITUENTID

False

False

False

IX_RELATIONSHIP_RELATIONSHIPCONSTITUENTID

RELATIONSHIPCONSTITUENTID

False

False

False

IX_RELATIONSHIP_RELATIONSHIPTYPECODEID

RELATIONSHIPTYPECODEID

False

False

False

PK_RELATIONSHIP

ID

True

True

False

UIX_RELATIONSHIP_RELATIONSHIPCONSTITUENTID_RECIPROCALCONSTITUENTID_RELATIONSHIPTYPECODEID_RECIPROCALTYPECODEID

RELATIONSHIPCONSTITUENTID

RECIPROCALCONSTITUENTID

RELATIONSHIPTYPECODEID

RECIPROCALTYPECODEID

True

False

False

Triggers
Trigger Name Description

TR_RELATIONSHIP_INSERT

TR_RELATIONSHIP_UPDATE

TR_RELATIONSHIP_DELETE

TR_RELATIONSHIP_AUDIT_UPDATE

TR_RELATIONSHIP_AUDIT_DELETE

TR_RELATIONSHIP_DELETE_BBNCRELATIONSHIPIDMAP

TR_RELATIONSHIP_INSERT_BBNCRELATIONSHIPIDMAP

Referenced by
Referenced by Field

ADDRESS

RELATIONSHIPID

BATCHREVENUE

MGRELATIONSHIPID

BATCHREVENUEENHANCEDMATCHINGGIFTS

RELATIONSHIPID

EMAILADDRESS

RELATIONSHIPID

GRANTOR

CONTACTID

PHONE

RELATIONSHIPID

PLANNEDGIFTRELATIONSHIP

RELATIONSHIPID

RELATIONSHIPBYMARRIAGE

MARRIAGERELATIONSHIPID

RELATIONSHIPBYMARRIAGE

RELATIONSHIPID

REVENUEMATCHINGGIFT

RELATIONSHIPID

SALESORDER

CONTACTRELATIONSHIPID