EVENTSTAFFRESOURCE
Contains the resources and quantity of those staff resources needed for an event.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
QUANTITYNEEDED |
int |
|
Default = 0 |
The quantity of the resource needed for the event. |
FILLEDBYCODE |
tinyint |
|
Default = 0 |
The type of staffing resource which can be used to fulfill this requirement. |
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. |
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. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
EVENTID |
uniqueidentifier |
yes |
EVENT.ID
|
The event that this resource is added to. |
VOLUNTEERTYPEID |
uniqueidentifier |
|
VOLUNTEERTYPE.LOCALID
|
The staff resource that we are adding to the event. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
JOBID |
uniqueidentifier |
yes |
JOB.ID
|
The job associated with the event staff resource. |
JOBOCCURRENCEID |
uniqueidentifier |
yes |
JOBOCCURRENCE.ID
|
The job occurrence associated with the event staff resource. |
EVENTCONFLICTID |
uniqueidentifier |
yes |
EVENTCONFLICT.ID
|
This is the conflict generated if this event could not be scheduled for any reason. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_EVENTSTAFFRESOURCE_DATEADDED |
DATEADDED |
|
|
yes |
IX_EVENTSTAFFRESOURCE_DATECHANGED |
DATECHANGED |
|
|
|
PK_EVENTSTAFFRESOURCE |
ID |
yes |
yes |
|
UIX_EVENTSTAFFRESOURCE_EVENTID_EVENTCONFLICTID_VOLUNTEERTYPEID |
EVENTID, EVENTCONFLICTID, VOLUNTEERTYPEID |
yes |
|
|
Triggers
Referenced by