Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.MasterRosterShiftInstance ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== Shifts instantiated by the Master Roster. The delete restrict foreign key blocks deletion of MasterRosterShifts once instantiated ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **MasterRosterShiftInstanceID** | char(20) | NOT NULL | | | | MasterRosterShiftID | char(20) | NOT NULL | | | | ShiftDate | date | NOT NULL | | | ===== Primary Key ===== * MasterRosterShiftInstanceID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | MasterRosterShift | MasterRosterShiftID | [[database:tables:pears_masterrostershift|pears.MasterRosterShift (MasterRosterShiftID)]] | NOT NULL; | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- 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 </code> database/tables/pears_masterrostershiftinstance.txt Last modified: 2026/08/07 19:24by 127.0.0.1