Difference between revisions of "HumanResources.Shift (table)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''Table | HumanResources.Shift |- |} {| border="1" cellpadding="5" cellspacing="0" sty...) |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== wikibot == | == wikibot == | ||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- valign="top" | ||
+ | | '''Table | ||
+ | | HumanResources.Shift | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Work shift lookup table. | ||
+ | |} | ||
+ | |||
+ | === Columns === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Column | ||
+ | | '''Data Type | ||
+ | | '''Nullable | ||
+ | | '''Default | ||
+ | | '''Description | ||
+ | |||
+ | |- valign="top" | ||
+ | | ShiftID | ||
+ | | tinyint | ||
+ | | not null | ||
+ | | | ||
+ | | Primary key for Shift records. | ||
+ | |- valign="top" | ||
+ | | Name | ||
+ | | dbo.Name | ||
+ | | not null | ||
+ | | | ||
+ | | Shift description. | ||
+ | |- valign="top" | ||
+ | | StartTime | ||
+ | | datetime | ||
+ | | not null | ||
+ | | | ||
+ | | Shift start time. | ||
+ | |- valign="top" | ||
+ | | EndTime | ||
+ | | datetime | ||
+ | | not null | ||
+ | | | ||
+ | | Shift end time. | ||
+ | |- valign="top" | ||
+ | | ModifiedDate | ||
+ | | datetime | ||
+ | | not null | ||
+ | | (getdate()) | ||
+ | | Date and time the record was last updated. | ||
+ | |} | ||
+ | |||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- valign="top" | ||
+ | | PK_Shift_ShiftID | ||
+ | | ShiftID | ||
+ | |} | ||
+ | |||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- valign="top" | ||
+ | | AK_Shift_Name | ||
+ | | Unique | ||
+ | | Name | ||
+ | |- valign="top" | ||
+ | | AK_Shift_StartTime_EndTime | ||
+ | | Unique | ||
+ | | StartTime, EndTime | ||
+ | |} | ||
+ | |||
+ | === Detail Tables === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Detail Table | ||
+ | | '''Column | ||
+ | | '''Referencing Column | ||
+ | |||
+ | |- valign="top" | ||
+ | | [[HumanResources.EmployeeDepartmentHistory_(table)|HumanResources.EmployeeDepartmentHistory]] | ||
+ | | ShiftID | ||
+ | | ShiftID | ||
+ | |} | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.Name_(type)|dbo.Name]] | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[HumanResources_(schema)|HumanResources]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | === Dependencies === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Select | ||
+ | | View | ||
+ | | [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | == wikivalues == | ||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- valign="top" | ||
+ | | '''Table Values | ||
+ | | HumanResources.Shift | ||
+ | |} | ||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | |||
+ | | '''ShiftID | ||
+ | | '''Name | ||
+ | | '''StartTime | ||
+ | | '''EndTime | ||
+ | |- valign="top" | ||
+ | |||
+ | | 1 | ||
+ | | Day | ||
+ | | 1900-01-01 07:00:00.000 | ||
+ | | 1900-01-01 15:00:00.000 | ||
+ | |- valign="top" | ||
+ | |||
+ | | 2 | ||
+ | | Evening | ||
+ | | 1900-01-01 15:00:00.000 | ||
+ | | 1900-01-01 23:00:00.000 | ||
+ | |- valign="top" | ||
+ | |||
+ | | 3 | ||
+ | | Night | ||
+ | | 1900-01-01 23:00:00.000 | ||
+ | | 1900-01-01 07:00:00.000 | ||
+ | |} | ||
+ | |||
+ | == automatically generated == | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
Line 5: | Line 166: | ||
| '''Table | | '''Table | ||
| HumanResources.Shift | | HumanResources.Shift | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Work shift lookup table. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 179: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| ShiftID | | ShiftID | ||
| tinyint | | tinyint | ||
| not null | | not null | ||
| | | | ||
− | | PK_Shift_ShiftID | + | | Primary key for Shift records.<br />PK_Shift_ShiftID |
− | | | + | |- valign="top" |
− | | | + | | Name |
| Name | | Name | ||
− | |||
| not null | | not null | ||
| | | | ||
− | | | + | | Shift description.<br />AK_Shift_Name |
− | + | |- valign="top" | |
− | |- | ||
| StartTime | | StartTime | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Shift start time.<br />AK_Shift_StartTime_EndTime |
− | + | |- valign="top" | |
− | |- | ||
| EndTime | | EndTime | ||
| datetime | | datetime | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Shift end time.<br />AK_Shift_StartTime_EndTime |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
− | | ( | + | | (GETDATE()) |
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 67: | Line 225: | ||
| ShiftID | | ShiftID | ||
| ShiftID | | ShiftID | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Data Type | ||
+ | | Type | ||
+ | | [[dbo.Name_(type)|dbo.Name]] | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[HumanResources_(schema)|HumanResources]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Reference Type | ||
+ | | '''Object Type | ||
+ | | '''Referencing Object | ||
+ | |||
+ | |- | ||
+ | | Select | ||
+ | | View | ||
+ | | [[HumanResources.vEmployeeDepartmentHistory_(view)|HumanResources.vEmployeeDepartmentHistory]] | ||
+ | |||
|} | |} |
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 |