PROSPECTRESEARCHREQUESTCONSTITUENT
This table contains information about prospect research request constituents.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| REQUESTNO |
nvarchar(100) |
|
Default = '' |
|
| STATUSCODE |
tinyint |
|
Default = 0 |
0=New, 1=Pending, 2=Assigned, 3=In progress, 4=Completed, 5=Rejected, 6=Canceled |
| DUEDATE |
datetime |
yes |
|
|
| NOTES |
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. |
| STATUS |
nvarchar(11) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'New' WHEN 1 THEN N'Pending' WHEN 2 THEN N'Assigned' WHEN 3 THEN N'In progress' WHEN 4 THEN N'Completed' WHEN 5 THEN N'Rejected' WHEN 6 THEN N'Canceled' END |
Provides a translation for the 'STATUSCODE' field. |
| TIMESPENT |
decimal(20, 2) |
|
Default = 0 |
|
| STATUSCHANGENOTES |
nvarchar(max) |
|
Default = '' |
|
| DATECOMPLETED |
datetime |
yes |
|
|
Foreign Keys
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_PROSPECTRESEARCHREQUESTCONSTITUENT_ASSIGNEDTOID |
ASSIGNEDTOID |
|
|
|
| IX_PROSPECTRESEARCHREQUESTCONSTITUENT_DATEADDED |
DATEADDED |
|
|
yes |
| IX_PROSPECTRESEARCHREQUESTCONSTITUENT_DATECHANGED |
DATECHANGED |
|
|
|
| PK_PROSPECTRESEARCHREQUESTCONSTITUENT |
ID |
yes |
yes |
|
| UIX_PROSPECTRESEARCHREQUESTCONSTITUENT_PROSPECTRESEARCHREQUESTID_CONSTITUENTID |
PROSPECTRESEARCHREQUESTID, CONSTITUENTID |
yes |
|
|
Triggers
Referenced by