BATCHTIMESHEET (4.0SP20)

Stores data for the timesheet batch.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHID

uniqueidentifier

false

Indicates the batch to which this record belongs.

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.

SEQUENCE

int

false

0

Idicates the sequence of this record in the batch.

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_BATCHTIMESHEET_DATEADDED

DATEADDED

False

False

True

IX_BATCHTIMESHEET_DATECHANGED

DATECHANGED

False

False

False

IX_BATCHTIMESHEET_VOLUNTEERID

VOLUNTEERID

False

False

False

PK_BATCHTIMESHEET

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHTIMESHEET_AUDIT_UPDATE

TR_BATCHTIMESHEET_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHTIMESHEETBATCHSYSTEMMESSAGES

BATCHTIMESHEETID

BATCHTIMESHEETBATCHUSERMESSAGE

ID