Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 QUANTITYNEEDED int   Default = 0 The quantity of this staff resource needed for the itinerary item.
 FILLEDBYCODE tinyint   Default = 0 The type of staff resource needed for this itinerary.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 FILLEDBY nvarchar(9) (Computed) 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.
 PRICE money   Default = 0 The price of the resource.
 PRICINGSTRUCTURECODE tinyint   Default = 0 Indicates the pricing structure for the resource.
 PRICINGSTRUCTURE nvarchar(24) (Computed) CASE [PRICINGSTRUCTURECODE] WHEN 0 THEN N'No charge' WHEN 1 THEN N'Flat rate per resource' WHEN 2 THEN N'Hourly rate per resource' END Provides a translation for the 'PRICINGSTRUCTURECODE' field.
 IGNORESQUANTITYFORCAPACITY bit   Default = 0 For group check-in, bypass constraint on quantity required for capacity.

Foreign Key Field Type Null Notes Description
 ITINERARYITEMID uniqueidentifier   ITINERARYITEM.ID The itinerary item that this staff resource is for.
 VOLUNTEERTYPEID uniqueidentifier   VOLUNTEERTYPE.LOCALID The volunteer type id that is associated with this staff resource.
 JOBID uniqueidentifier JOB.ID The job associated with this itinerary item staff resource.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 JOBOCCURRENCEID uniqueidentifier JOBOCCURRENCE.ID The job occurence associated with this itinerary item staff resource.

Index Name Field(s) Unique Primary Clustered
 IX_ITINERARYITEMSTAFFRESOURCE_DATEADDED DATEADDED    
 IX_ITINERARYITEMSTAFFRESOURCE_DATECHANGED DATECHANGED      
 PK_ITINERARYITEMSTAFFRESOURCE ID  
 UIX_ITINERARYITEMSTAFFRESOURCE_ITINERARYITEMID_VOLUNTEERTYPEID_JOBID ITINERARYITEMID, VOLUNTEERTYPEID, JOBID    

Trigger Name Description
 TR_ITINERARYITEMSTAFFRESOURCE_DELETE_JOBOCCURRENCE
 TR_ITINERARYITEMSTAFFRESOURCE_AUDIT_UPDATE
 TR_ITINERARYITEMSTAFFRESOURCE_AUDIT_DELETE
 TR_ITINERARYITEMSTAFFRESOURCE_INSERT_JOBOCCURRENCE
 TR_ITINERARYITEMSTAFFRESOURCE_UPDATE_JOBOCCURRENCE

Referenced by Field
 ITINERARYITEMSTAFFRESOURCEASSIGNMENT ITINERARYITEMSTAFFRESOURCEID
 SALESORDERITEMITINERARYITEMSTAFFRESOURCE ITINERARYITEMSTAFFRESOURCEID

Entity-Relationship diagram of this table