JOB
Stores information pertaining to a job to be performed by volunteers.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
The name of the job. |
DESCRIPTION |
nvarchar(255) |
|
Default = '' |
A brief description of the job. |
ISACTIVE |
bit |
|
Default = 1 |
Indicates whether or not the job is active. |
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. |
ESTIMATEDVALUE |
money |
|
Default = 0 |
The estimated value per hour for the job, stored in the job's base currency. |
ORGANIZATIONESTIMATEDVALUE |
money |
|
Default = 0 |
The estimated value per hour for the job, stored in the organization currency. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
VOLUNTEERTYPEID |
uniqueidentifier |
yes |
VOLUNTEERTYPE.LOCALID
|
The type of volunteer to be assigned to this job. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
SITEID |
uniqueidentifier |
yes |
SITE.ID
|
The job's site. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this job. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert base currency amounts to organization amounts. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_JOB_DATEADDED |
DATEADDED |
|
|
yes |
IX_JOB_DATECHANGED |
DATECHANGED |
|
|
|
PK_JOB |
ID |
yes |
yes |
|
UC_JOB_NAME |
NAME |
yes |
|
|
Triggers
Referenced by