CONSTITUENTNOTE (4.0SP17)

This table contains notes belonging to constituents.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

AUTHORID

uniqueidentifier

true

The author of the note

CONSTITUENTNOTETYPECODEID

uniqueidentifier

false

Indicates the user-defined type of this note.

CONSTITUENTID

uniqueidentifier

false

The constituent record to which this note belongs.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DATEENTERED

datetime

false

The date the note was entered.

TITLE

nvarchar(50)

false

''

The title of the note.

TEXTNOTE

nvarchar(max)

false

''

The plain text that comprises this note.

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.

HTMLNOTE

nvarchar(max)

false

''

The HTML that comprises this note.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_CONSTITUENTNOTE_AUTHORID

AUTHORID

False

False

False

IX_CONSTITUENTNOTE_CONSTITUENTID

CONSTITUENTID

False

False

False

IX_CONSTITUENTNOTE_DATEADDED

DATEADDED

False

False

True

IX_CONSTITUENTNOTE_DATECHANGED

DATECHANGED

False

False

False

PK_CONSTITUENTNOTE

ID

True

True

False

Triggers
Trigger Name Description

TR_CONSTITUENTNOTE_TASYNC_I

TR_CONSTITUENTNOTE_TASYNC_U

TR_CONSTITUENTNOTE_TASYNC_D

TR_CONSTITUENTNOTE_AUDIT_UPDATE

TR_CONSTITUENTNOTE_AUDIT_DELETE

TR_CONSTITUENTNOTE_INSERT_HTMLPOPULATE

Referenced by
Referenced by Field

ALTRUANNOTATIONNOTIFICATION

ID

CONSTITUENTNOTEATTACHMENT

CONSTITUENTNOTEID

CONSTITUENTNOTEBBIS

ID