Difference between revisions of "HumanResources.Shift (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| HumanResources.Shift
 
| HumanResources.Shift
 +
|- valign="top"
 +
| '''Description
 +
| Work shift lookup table.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''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
 
| dbo.Name
 
| dbo.Name
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Shift description.<br />AK_Shift_Name
| AK_Shift_Name
+
|- valign="top"
|-
 
 
| StartTime
 
| StartTime
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Shift start time.<br />AK_Shift_StartTime_EndTime
| AK_Shift_StartTime_EndTime
+
|- valign="top"
|-
 
 
| EndTime
 
| EndTime
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Shift end time.<br />AK_Shift_StartTime_EndTime
| AK_Shift_StartTime_EndTime
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 68: Line 65:
 
| 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]]
 +
 +
|}
 +
 +
 +
{| 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]]
 +
 +
|}
 +
 +
 +
 
== wikivalues ==
 
== wikivalues ==
  

Revision as of 23:55, 28 December 2009

wikibot

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 dbo.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


Reference Type Object Type Referencing Object
Select View HumanResources.vEmployeeDepartmentHistory


wikivalues

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

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