VOLUNTEERSCREENPLANSTEP
Step required for completing a screen plan.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| SEQUENCE |
int |
|
Default = 0 |
|
| STATUSCODE |
tinyint |
|
Default = 0 |
0=Pending, 1=Complete, 2=Failed |
| STATUS |
nvarchar(8) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Complete' WHEN 2 THEN N'Failed' END |
Provides a translation for the 'STATUSCODE' field. |
| DUEDATE |
datetime |
|
|
|
| DATECOMPLETE |
datetime |
yes |
|
|
| COMMENTS |
nvarchar(4000) |
|
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
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_VOLUNTEERSCREENPLANSTEP_DATEADDED |
DATEADDED |
|
|
yes |
| IX_VOLUNTEERSCREENPLANSTEP_DATECHANGED |
DATECHANGED |
|
|
|
| PK_VOLUNTEERSCREENPLANSTEP |
ID |
yes |
yes |
|
| UIX_VOLUNTEERSCREENPLANSTEP_SCREENPLANID_STEPCODEID |
SCREENPLANID, STEPCODEID |
yes |
|
|
Triggers