BATCHTIMESHEET
Stores data for the timesheet batch.
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. |
| SEQUENCE |
int |
|
Default = 0 |
Indicates 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
| 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 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_BATCHTIMESHEET_DATEADDED |
DATEADDED |
|
|
yes |
| IX_BATCHTIMESHEET_DATECHANGED |
DATECHANGED |
|
|
|
| IX_BATCHTIMESHEET_VOLUNTEERID |
VOLUNTEERID |
|
|
|
| PK_BATCHTIMESHEET |
ID |
yes |
yes |
|
Triggers
Referenced by