pears.MasterRosterShiftInstance
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
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 | pears.MasterRosterShift (MasterRosterShiftID) | NOT NULL; |
Referenced By
- No incoming foreign keys found.
Indexes
- No indexes found.
Triggers
- No triggers found.
Original 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