AdventureWorks2019
HumanResources.Shift
//
Work shift lookup table.
Created: Modified:
Columns
-
//${escapify(column.description)}[tinyint] IDENTITY (1,1) NOT NULL
-
//${escapify(column.description)}[Name] NOT NULL//USER-DEFINED DATA TYPE[nvarchar](50) NULL
-
//${escapify(column.description)}[time](5) NOT NULL
-
//${escapify(column.description)}[time](5) NOT NULL
-
//${escapify(column.description)}[datetime] NOT NULL DEFAULT (getdate())
Indexes
-
//Clustered index created by a primary key constraint.PK_Shift_ShiftIDUNIQUE CLUSTEREDShiftID
-
//Unique nonclustered index.AK_Shift_NameUNIQUE NONCLUSTEREDName
-
//Unique nonclustered index.AK_Shift_StartTime_EndTimeUNIQUE NONCLUSTEREDStartTime , EndTime
Sample Data
ShiftID
Name
StartTime
EndTime
ModifiedDate
1
Day
Thu Jan 01 1970 02:00:00 GMT-0500 (Eastern Standard Time)
Thu Jan 01 1970 10:00:00 GMT-0500 (Eastern Standard Time)
2
Evening
Thu Jan 01 1970 10:00:00 GMT-0500 (Eastern Standard Time)
Thu Jan 01 1970 18:00:00 GMT-0500 (Eastern Standard Time)
3
Night
Thu Jan 01 1970 18:00:00 GMT-0500 (Eastern Standard Time)
Thu Jan 01 1970 02:00:00 GMT-0500 (Eastern Standard Time)