| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| 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) | ![]() |
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 |
|---|---|---|---|---|
EVENTID |
uniqueidentifier | ![]() |
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 | ![]() |
JOB.ID | The job associated with the event staff resource. |
JOBOCCURRENCEID |
uniqueidentifier | ![]() |
JOBOCCURRENCE.ID | The job occurence associated with the event staff resource. |
EVENTCONFLICTID |
uniqueidentifier | ![]() |
EVENTCONFLICT.ID | This is the conflict generated if this event could not be scheduled for any reason. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_EVENTSTAFFRESOURCE_DATEADDED |
DATEADDED | ![]() |
||
IX_EVENTSTAFFRESOURCE_DATECHANGED |
DATECHANGED | |||
PK_EVENTSTAFFRESOURCE |
ID | ![]() |
![]() |
|
UIX_EVENTSTAFFRESOURCE_EVENTID_EVENTCONFLICTID_VOLUNTEERTYPEID |
EVENTID, EVENTCONFLICTID, VOLUNTEERTYPEID | ![]() |
| Trigger Name | Description |
|---|---|
TR_EVENTSTAFFRESOURCE_INSERT_JOB |
|
TR_EVENTSTAFFRESOURCE_DELETE_JOB |
|
TR_EVENTSTAFFRESOURCE_AUDIT_UPDATE |
|
TR_EVENTSTAFFRESOURCE_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
EVENTSTAFFRESOURCEASSIGNMENT |
EVENTSTAFFRESOURCEID |

ID
QUANTITYNEEDED
TSLONG
EVENTID
IX_EVENTSTAFFRESOURCE_DATEADDED
IX_EVENTSTAFFRESOURCE_DATECHANGED