PROSPECTRESEARCHREQUEST
This table contains information about prospect research requests.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| REQUESTNO |
int |
|
Default = 0 |
|
| STATUSCODE |
tinyint |
|
Default = 0 |
0=New, 1=Pending, 2=Assigned, 3=In progress, 4=Completed, 5=Rejected, 6=Canceled |
| RECORDTYPECODE |
tinyint |
|
Default = 0 |
0=Individual, 1=Event, 2=Research Group, 3=Organization |
| DUEDATE |
datetime |
|
|
|
| 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. |
| STATUSCHANGENOTES |
nvarchar(max) |
|
Default = '' |
|
| RECORDTYPE |
nvarchar(13) (Computed) |
yes |
CASE [RECORDTYPECODE] WHEN 0 THEN N'Individual' WHEN 1 THEN N'Event' WHEN 2 THEN N'Research List' WHEN 3 THEN N'Organization' END |
|
Foreign Keys
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_PROSPECTRESEARCHREQUEST_ASSIGNEDTOID |
ASSIGNEDTOID |
|
|
|
| IX_PROSPECTRESEARCHREQUEST_DATEADDED |
DATEADDED |
|
|
yes |
| IX_PROSPECTRESEARCHREQUEST_DATECHANGED |
DATECHANGED |
|
|
|
| IX_PROSPECTRESEARCHREQUEST_REQUESTEDBYID |
REQUESTEDBYID |
|
|
|
| IX_PROSPECTRESEARCHREQUEST_SUBMITTEDBYID |
SUBMITTEDBYID |
|
|
|
| PK_PROSPECTRESEARCHREQUEST |
ID |
yes |
yes |
|
| UIX_PROSPECTRESEARCHREQUEST_REQUESTNO |
REQUESTNO |
yes |
|
|
Triggers
Referenced by