PROSPECTFUNDINGINTEREST
Contains a list of funding interests for a given prospect.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
INTERESTLEVELCODE |
tinyint |
|
Default = 2 |
4=Extremely positive, 3=Somewhat positive, 2=Neutral, 1=Somewhat negative, 0=Extremely negative |
INTERESTLEVEL |
nvarchar(18) (Computed) |
yes |
CASE [INTERESTLEVELCODE] WHEN 4 THEN N'Extremely positive' WHEN 3 THEN N'Somewhat positive' WHEN 2 THEN N'Neutral' WHEN 1 THEN N'Somewhat negative' WHEN 0 THEN N'Extremely negative' END |
Provides a translation for the 'INTERESTLEVELCODE' field. |
COMMENT |
nvarchar(max) |
|
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. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
PROSPECTID |
uniqueidentifier |
|
PROSPECT.LOCALID
|
A foreign key to the prospect table |
FUNDINGTYPECODEID |
uniqueidentifier |
|
FUNDINGTYPECODE.ID
|
FK to FUNDINGTYPECODE |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_PROSPECTFUNDINGINTEREST_DATEADDED |
DATEADDED |
|
|
yes |
IX_PROSPECTFUNDINGINTEREST_DATECHANGED |
DATECHANGED |
|
|
|
PK_PROSPECTFUNDINGINTEREST |
ID |
yes |
yes |
|
UIX_PROSPECTFUNDINGINTEREST_PROSPECTID_FUNDINGTYPECODEID |
PROSPECTID, FUNDINGTYPECODEID |
yes |
|
|
Triggers
Referenced by