VOLUNTEERVOLUNTEERTYPE
Department for a volunteer type.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| STARTDATE |
UDT_FUZZYDATE |
|
Default = '00000000' |
|
| ENDDATE |
UDT_FUZZYDATE |
|
Default = '00000000' |
|
| STATUSCODE |
tinyint |
|
Default = 0 |
0=Pending, 1=Active, 2=Inactive, 3=Unapproved, 4=Lapsed |
| STATUS |
nvarchar(10) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Active' WHEN 2 THEN N'Inactive' WHEN 3 THEN N'Unapproved' WHEN 4 THEN N'Lapsed' END |
Provides a translation for the 'STATUSCODE' field. |
| 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_VOLUNTEERVOLUNTEERTYPE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_VOLUNTEERVOLUNTEERTYPE_DATECHANGED |
DATECHANGED |
|
|
|
| IX_VOLUNTEERVOLUNTEERTYPE_VOLUNTEERSCREENPLANID |
VOLUNTEERSCREENPLANID |
|
|
|
| IX_VOLUNTEERVOLUNTEERTYPE_VOLUNTEERTYPEID |
VOLUNTEERTYPEID |
|
|
|
| PK_VOLUNTEERVOLUNTEERTYPE |
ID |
yes |
yes |
|
| UIX_VOLUNTEERVOLUNTEERTYPE_VOLUNTEERID_VOLUNTEERTYPEID_STARTDATE_ENDDATE |
VOLUNTEERID, VOLUNTEERTYPEID, STARTDATE, ENDDATE |
yes |
|
|
Triggers