CONSTITUENTINTEREST
This table contains a list of a constituent's interests.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NOTE |
nvarchar(255) |
|
Default = '' |
Any additional notes for this interest. |
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. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
CONSTITUENTINTERESTCODEID |
uniqueidentifier |
|
CONSTITUENTINTERESTCODE.ID
|
Indicates the user-defined type for this interest. |
CONSTITUENTID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
The constituent record to which this interest belongs. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_CONSTITUENTINTEREST_CONSTITUENTID |
CONSTITUENTID |
|
|
|
IX_CONSTITUENTINTEREST_DATEADDED |
DATEADDED |
|
|
yes |
IX_CONSTITUENTINTEREST_DATECHANGED |
DATECHANGED |
|
|
|
PK_CONSTITUENTINTEREST |
ID |
yes |
yes |
|
Triggers
Referenced by