Primary Key Field Type
 ID uniqueidentifier

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 Indicates the end date for the timesheet.
 SEQUENCE int   Default = 0 Idicates the sequence of this record in the batch.
 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.

Foreign Key Field Type Null Notes Description
 BATCHID uniqueidentifier   BATCH.ID Indicates the batch to which this record belongs.
 VOLUNTEERID uniqueidentifier   CONSTITUENT.LOCALID Indicates the volunteer to whom this timesheet applies.
 JOBOCCURRENCEID uniqueidentifier   JOBOCCURRENCE.ID Indicates the job occurance to which this timesheet applies.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BATCHTIMESHEET_DATEADDED DATEADDED    
 IX_BATCHTIMESHEET_DATECHANGED DATECHANGED      
 IX_BATCHTIMESHEET_VOLUNTEERID VOLUNTEERID      
 PK_BATCHTIMESHEET ID  

Trigger Name Description
 TR_BATCHTIMESHEET_AUDIT_UPDATE
 TR_BATCHTIMESHEET_AUDIT_DELETE

Referenced by Field
 BATCHTIMESHEETBATCHSYSTEMMESSAGES BATCHTIMESHEETID
 BATCHTIMESHEETBATCHUSERMESSAGE ID

Entity-Relationship diagram of this table