GROUPTYPEREQUIREDSTAFFRESOURCE
Provides a way to select the required staffing resources and staffing resource quantities for a group type.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
QUANTITYNEEDED |
int |
|
Default = 0 |
How many of the given staffing resource are required. |
FILLEDBYCODE |
tinyint |
|
Default = 0 |
The type of staff resource needed for this itinerary. |
FILLEDBY |
nvarchar(9) (Computed) |
yes |
CASE [FILLEDBYCODE] WHEN 0 THEN N'Volunteer' WHEN 1 THEN N'Staff' WHEN 2 THEN N'Board' END |
Provides a translation for the 'FILLEDBYCODE' field. |
JOBNAME |
nvarchar(100) |
|
Default = '' |
The name of the job to create when the track is used. |
JOBDESCRIPTION |
nvarchar(255) |
|
Default = '' |
The description of the job to create when the track is used |
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
Foreign Key |
Field Type |
Null |
Notes |
Description |
GROUPSALESGROUPTYPECODEID |
uniqueidentifier |
|
GROUPSALESGROUPTYPECODE.ID
|
The group type for this requirement |
VOLUNTEERTYPEID |
uniqueidentifier |
|
VOLUNTEERTYPE.LOCALID
|
Describes the staffing resource this requirement. |
JOBID |
uniqueidentifier |
yes |
JOB.ID
|
The job that represents this resource. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_GROUPTYPEREQUIREDSTAFFRESOURCE_DATEADDED |
DATEADDED |
|
|
yes |
IX_GROUPTYPEREQUIREDSTAFFRESOURCE_DATECHANGED |
DATECHANGED |
|
|
|
PK_GROUPTYPEREQUIREDSTAFFRESOURCE |
ID |
yes |
yes |
|
UIX_GROUPTYPEREQUIREDSTAFFRESOURCE_GROUPSALESGROUPTYPECODEID_VOLUNTEERTYPEID |
GROUPSALESGROUPTYPECODEID, VOLUNTEERTYPEID |
yes |
|
|
Triggers