TIMESHEET (4.0SP19)

Time sheets for a volunteer who worked on a job occurrance.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

VOLUNTEERID

uniqueidentifier

false

Indicates the volunteer to whom this timesheet applies.

JOBOCCURRENCEID

uniqueidentifier

false

Indicates the job occurance to which this timesheet applies.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

HOURSWORKED

decimal(20, 2)

false

0.0

Indicates the number of hours worked for this time sheet (in quarter hour increments).

STARTDATE

datetime

false

Indicates the start date for the timesheet.

ENDDATE

datetime

true

Indicates the end date for the timesheet.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_TIMESHEET_DATEADDED

DATEADDED

False

False

True

IX_TIMESHEET_DATECHANGED

DATECHANGED

False

False

False

IX_TIMESHEET_JOBOCCURRENCEID

JOBOCCURRENCEID

False

False

False

IX_TIMESHEET_VOLUNTEERID

VOLUNTEERID

False

False

False

PK_TIMESHEET

ID

True

True

False

Triggers
Trigger Name Description

TR_TIMESHEET_AUDIT_UPDATE

TR_TIMESHEET_AUDIT_DELETE