Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Details of when and to whom Shifts have been cascaded. Including errors.
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| CascadedShiftID | char(20) | NOT NULL | ||
| TempshiftPlanID | char(20) | NOT NULL | ||
| SecondaryAgencyID | char(20) | NOT NULL | ||
| CascadeTime | timestamp | NOT NULL | ||
| CascadeLevel | smallint | NOT NULL | 1 is the first cascade | |
| Method | char(10) | NOT NULL | ||
| Details | long varchar | NULL | ||
| ErrorLevel | smallint | NULL | ||
| ReNotifyState | char(20) | NULL | ||
| WhenDeclined | timestamp | NULL | ||
| DeclinedNote | long varchar | NULL |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| TempShiftPlan | TempshiftPlanID | pears.TempShiftPlan (TempShiftPlanID) | NOT NULL; ON DELETE CASCADE |
| Company | SecondaryAgencyID | pears.Company (companyid) | NOT NULL; ON DELETE CASCADE |
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."CascadedShift" -- Table comment: Details of when and to whom Shifts have been cascaded. Including errors. -- Statement count: 5 CREATE TABLE "pears"."CascadedShift" ( "CascadedShiftID" CHAR(20) NOT NULL ,"TempshiftPlanID" CHAR(20) NOT NULL ,"SecondaryAgencyID" CHAR(20) NOT NULL ,"CascadeTime" TIMESTAMP NOT NULL ,"CascadeLevel" SMALLINT NOT NULL ,"Method" CHAR(10) NOT NULL ,"Details" long VARCHAR NULL ,"ErrorLevel" SMALLINT NULL ,"ReNotifyState" CHAR(20) NULL ,"WhenDeclined" TIMESTAMP NULL ,"DeclinedNote" long VARCHAR NULL ,PRIMARY KEY ("CascadedShiftID" ASC) ) GO COMMENT ON COLUMN "pears"."CascadedShift"."CascadeLevel" IS '1 is the first cascade' GO COMMENT ON TABLE "pears"."CascadedShift" IS 'Details of when and to whom Shifts have been cascaded. Including errors.' GO ALTER TABLE "pears"."CascadedShift" ADD NOT NULL FOREIGN KEY "TempShiftPlan" ("TempshiftPlanID" ASC) REFERENCES "pears"."TempShiftPlan" ("TempShiftPlanID") ON DELETE CASCADE GO ALTER TABLE "pears"."CascadedShift" ADD NOT NULL FOREIGN KEY "Company" ("SecondaryAgencyID" ASC) REFERENCES "pears"."Company" ("companyid") ON DELETE CASCADE GO