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 track item.
 FILLEDBYCODE tinyint   Default = 0 The type of staff resource needed for this track.
 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) 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.

Foreign Key Field Type Null Notes Description
 TRACKITEMID uniqueidentifier   TRACKITEM.ID The track 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 track item staff resource.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_TRACKITEMSTAFFRESOURCE_DATEADDED DATEADDED    
 IX_TRACKITEMSTAFFRESOURCE_DATECHANGED DATECHANGED      
 PK_TRACKITEMSTAFFRESOURCE ID  
 UIX_TRACKITEMSTAFFRESOURCE_TRACKITEMID_VOLUNTEERTYPEID TRACKITEMID, VOLUNTEERTYPEID    

Trigger Name Description
 TR_TRACKITEMSTAFFRESOURCE_AUDIT_UPDATE
 TR_TRACKITEMSTAFFRESOURCE_AUDIT_DELETE

Entity-Relationship diagram of this table