====== pears.TempShiftType ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
List of defined shift types. Used in descriptions and rate processing.
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **TempShiftTypeID** | char(2) | NOT NULL | | |
| Description | char(30) | NOT NULL | | |
| SortOrder | smallint | NULL | | |
| PublishToWeb | smallint | NULL | 0 | |
===== Primary Key =====
* TempShiftTypeID
===== Foreign Keys =====
* No outgoing foreign keys found.
===== Referenced By =====
^ Table ^ Constraint ^ Columns ^ Referenced columns ^
| [[database:tables:pears_masterrostershift|pears.MasterRosterShift]] | TempShiftType | TempShiftTypeID | TempShiftTypeID |
| [[database:tables:pears_tempshift|pears.TempShift]] | TempShiftType | TempShiftTypeID | TempShiftTypeID |
| [[database:tables:pears_tempshiftplan|pears.TempShiftPlan]] | TempShiftType | TempShiftTypeID | TempShiftTypeID |
| [[database:tables:pears_tempshifttemplate|pears.TempShiftTemplate]] | TempShiftType | TempShiftTypeID | TempShiftTypeID |
===== Indexes =====
^ Name ^ Type ^ Columns ^ Detail ^
| TempShiftTypeSortOrder | Index | SortOrder | |
===== Triggers =====
* No triggers found.
===== Original SQL =====
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempShiftType"
-- Table comment: List of defined shift types. Used in descriptions and rate processing.
-- Statement count: 3
CREATE TABLE "pears"."TempShiftType" (
"TempShiftTypeID" char(2) NOT NULL
,"Description" char(30) NOT NULL
,"SortOrder" smallint NULL
,"PublishToWeb" smallint NULL DEFAULT 0
,PRIMARY KEY ("TempShiftTypeID" ASC)
)
go
COMMENT ON TABLE "pears"."TempShiftType" IS
'List of defined shift types. Used in descriptions and rate processing.'
go
CREATE INDEX "TempShiftTypeSortOrder" ON "pears"."TempShiftType"
( "SortOrder" )
go