Difference between revisions of "HumanResources.Shift (table)"
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| HumanResources.Shift | | HumanResources.Shift | ||
Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Work shift lookup table. | | Work shift lookup table. | ||
− | |||
|} | |} | ||
− | |||
=== Columns === | === Columns === | ||
Line 20: | Line 18: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
− | + | ||
|- valign="top" | |- valign="top" | ||
| ShiftID | | ShiftID | ||
Line 58: | Line 56: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
− | |- | + | |- valign="top" |
| PK_Shift_ShiftID | | PK_Shift_ShiftID | ||
| ShiftID | | ShiftID | ||
Line 69: | Line 67: | ||
| '''Type | | '''Type | ||
| '''Columns | | '''Columns | ||
− | + | ||
− | |- | + | |- valign="top" |
| AK_Shift_Name | | AK_Shift_Name | ||
| Unique | | Unique | ||
| Name | | Name | ||
− | |- | + | |- valign="top" |
| AK_Shift_StartTime_EndTime | | AK_Shift_StartTime_EndTime | ||
| Unique | | Unique | ||
Line 86: | Line 84: | ||
| '''Column | | '''Column | ||
| '''Referencing Column | | '''Referencing Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[HumanResources.EmployeeDepartmentHistory_(table)|HumanResources.EmployeeDepartmentHistory]] | | [[HumanResources.EmployeeDepartmentHistory_(table)|HumanResources.EmployeeDepartmentHistory]] | ||
| ShiftID | | ShiftID | ||
Line 100: | Line 98: | ||
| '''Referenced Object | | '''Referenced Object | ||
− | |- | + | |- valign="top" |
| Data Type | | Data Type | ||
| Type | | Type | ||
| [[dbo.Name_(type)|dbo.Name]] | | [[dbo.Name_(type)|dbo.Name]] | ||
− | |- | + | |- valign="top" |
| Schema | | Schema | ||
| Schema | | Schema | ||
Line 119: | Line 117: | ||
| '''Referencing Object | | '''Referencing Object | ||
− | |- | + | |- valign="top" |
| Select | | Select | ||
| View | | View | ||
Line 130: | Line 128: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- valign="top" |
| '''Table Values | | '''Table Values | ||
| HumanResources.Shift | | HumanResources.Shift | ||
− | |||
|} | |} | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
− | |||
− | |||
| '''ShiftID | | '''ShiftID | ||
| '''Name | | '''Name | ||
| '''StartTime | | '''StartTime | ||
| '''EndTime | | '''EndTime | ||
− | |- | + | |- valign="top" |
− | | 1 | + | |
− | | Day | + | | 1 |
− | | 1900-01-01 07:00:00.000 | + | | Day |
− | | 1900-01-01 15:00:00.000 | + | | 1900-01-01 07:00:00.000 |
− | |- | + | | 1900-01-01 15:00:00.000 |
− | | 2 | + | |- valign="top" |
− | | Evening | + | |
− | | 1900-01-01 15:00:00.000 | + | | 2 |
− | | 1900-01-01 23:00:00.000 | + | | Evening |
− | |- | + | | 1900-01-01 15:00:00.000 |
− | | 3 | + | | 1900-01-01 23:00:00.000 |
− | | Night | + | |- valign="top" |
− | | 1900-01-01 23:00:00.000 | + | |
− | | 1900-01-01 07:00:00.000 | + | | 3 |
+ | | Night | ||
+ | | 1900-01-01 23:00:00.000 | ||
+ | | 1900-01-01 07:00:00.000 | ||
|} | |} | ||
Latest revision as of 09:54, 27 August 2011
Contents
wikibot[edit]
Table | HumanResources.Shift |
Description | Work shift lookup table. |
Columns[edit]
Column | Data Type | Nullable | Default | Description |
ShiftID | tinyint | not null | Primary key for Shift records. | |
Name | dbo.Name | not null | Shift description. | |
StartTime | datetime | not null | Shift start time. | |
EndTime | datetime | not null | Shift end time. | |
ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key[edit]
Primary Key | Columns |
PK_Shift_ShiftID | ShiftID |
Indexes[edit]
Index | Type | Columns |
AK_Shift_Name | Unique | Name |
AK_Shift_StartTime_EndTime | Unique | StartTime, EndTime |
Detail Tables[edit]
Detail Table | Column | Referencing Column |
HumanResources.EmployeeDepartmentHistory | ShiftID | ShiftID |
References[edit]
Dependency Type | Object Type | Referenced Object |
Data Type | Type | dbo.Name |
Schema | Schema | HumanResources |
Dependencies[edit]
Reference Type | Object Type | Referencing Object |
Select | View | HumanResources.vEmployeeDepartmentHistory |
wikivalues[edit]
Table Values | HumanResources.Shift |
ShiftID | Name | StartTime | EndTime |
1 | Day | 1900-01-01 07:00:00.000 | 1900-01-01 15:00:00.000 |
2 | Evening | 1900-01-01 15:00:00.000 | 1900-01-01 23:00:00.000 |
3 | Night | 1900-01-01 23:00:00.000 | 1900-01-01 07:00:00.000 |
automatically generated[edit]
Table | HumanResources.Shift |
Description | Work shift lookup table. |
Column | Data Type | Nullable | Default | Description / PK / Index |
ShiftID | tinyint | not null | Primary key for Shift records. PK_Shift_ShiftID | |
Name | Name | not null | Shift description. AK_Shift_Name | |
StartTime | datetime | not null | Shift start time. AK_Shift_StartTime_EndTime | |
EndTime | datetime | not null | Shift end time. AK_Shift_StartTime_EndTime | |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Detail Table | Column | Referencing Column |
HumanResources.EmployeeDepartmentHistory | ShiftID | ShiftID |
Dependency Type | Object Type | Referenced Object |
Data Type | Type | dbo.Name |
Schema | Schema | HumanResources |
Reference Type | Object Type | Referencing Object |
Select | View | HumanResources.vEmployeeDepartmentHistory |