PROSPECTASSIGNMENTREQUEST
Holds Prospect Assignment Requests
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| TYPECODE |
tinyint |
|
Default = 0 |
The type of request. |
| STATUSCODE |
tinyint |
|
Default = 0 |
The status of request. |
| REVIEWDATE |
datetime |
yes |
|
Date request was reviewed. |
| 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. |
| TYPE |
nvarchar(20) (Computed) |
yes |
CASE [TYPECODE] WHEN 0 THEN N'Prospect manager' WHEN 1 THEN N'Prospect team member' WHEN 2 THEN N'Primary manager' WHEN 3 THEN N'Secondary manager' WHEN 4 THEN N'Secondary solicitor' END |
Provides a translation for the 'TYPECODE' field. |
| STATUS |
nvarchar(8) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Approved' WHEN 2 THEN N'Denied' WHEN 3 THEN N'Canceled' END |
Provides a translation for the 'STATUSCODE' field. |
| STARTDATE |
datetime |
yes |
|
Requested start date for the fundraiser. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| NEWFUNDRAISERID |
uniqueidentifier |
yes |
CONSTITUENT.LOCALID
|
A foreign key to the proposed fundraiser ID. |
| REVIEWEDBYID |
uniqueidentifier |
yes |
APPUSER.ID
|
App user who reviewed request. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| SUBMITTEDBYID |
uniqueidentifier |
|
APPUSER.ID
|
App user who requested the change. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_PROSPECTASSIGNMENTREQUEST_DATEADDED |
DATEADDED |
|
|
yes |
| IX_PROSPECTASSIGNMENTREQUEST_DATECHANGED |
DATECHANGED |
|
|
|
| IX_PROSPECTASSIGNMENTREQUEST_NEWFUNDRAISERID |
NEWFUNDRAISERID |
|
|
|
| PK_PROSPECTASSIGNMENTREQUEST |
ID |
yes |
yes |
|
Triggers
Referenced by