pears.MasterRosterShiftInstance

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Shifts instantiated by the Master Roster. The delete restrict foreign key blocks deletion of MasterRosterShifts once instantiated

Column Type Null Default Comment
MasterRosterShiftInstanceID char(20) NOT NULL
MasterRosterShiftID char(20) NOT NULL
ShiftDate date NOT NULL
  • MasterRosterShiftInstanceID
Constraint Columns References Delete/update action
MasterRosterShift MasterRosterShiftID pears.MasterRosterShift (MasterRosterShiftID) NOT NULL;
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."MasterRosterShiftInstance"
-- Table comment: Shifts instantiated by the Master Roster. The delete restrict foreign key blocks deletion of MasterRosterShifts once instantiated
-- Statement count: 3
 
CREATE TABLE "pears"."MasterRosterShiftInstance" (
    "MasterRosterShiftInstanceID"    CHAR(20) NOT NULL
   ,"MasterRosterShiftID"            CHAR(20) NOT NULL
   ,"ShiftDate"                      DATE NOT NULL
   ,PRIMARY KEY ("MasterRosterShiftInstanceID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."MasterRosterShiftInstance" IS 
	'Shifts instantiated by the Master Roster. The delete restrict foreign key blocks deletion of MasterRosterShifts once instantiated'
GO
 
 
ALTER TABLE "pears"."MasterRosterShiftInstance"
    ADD NOT NULL FOREIGN KEY "MasterRosterShift" ("MasterRosterShiftID" ASC)
    REFERENCES "pears"."MasterRosterShift" ("MasterRosterShiftID")
GO
  • database/tables/pears_masterrostershiftinstance.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1