TIMESHEET
Time sheets for a volunteer who worked on a job occurrence.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
HOURSWORKED |
decimal(20, 2) |
|
Default = 0.0 |
Indicates the number of hours worked for this time sheet (in quarter hour increments). |
STARTDATE |
datetime |
|
|
Indicates the start date for the timesheet. |
ENDDATE |
datetime |
yes |
|
Indicates the end date for the timesheet. |
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. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
VOLUNTEERID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
Indicates the volunteer to whom this timesheet applies. |
JOBOCCURRENCEID |
uniqueidentifier |
|
JOBOCCURRENCE.ID
|
Indicates the job occurrence to which this timesheet applies. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_TIMESHEET_DATEADDED |
DATEADDED |
|
|
yes |
IX_TIMESHEET_DATECHANGED |
DATECHANGED |
|
|
|
IX_TIMESHEET_JOBOCCURRENCEID |
JOBOCCURRENCEID |
|
|
|
IX_TIMESHEET_VOLUNTEERID |
VOLUNTEERID |
|
|
|
PK_TIMESHEET |
ID |
yes |
yes |
|
Triggers