====== pears.AutoMatchShiftQueue ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== For use by Auto-matching procedures ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **AutoMatchShiftQueueID** | bigint | NOT NULL | autoincrement | | | TempShiftPlanID | char(20) | NULL | | | | Created | timestamp | NULL | current timestamp | | | Completed | timestamp | NULL | | means has been used | | NotRequired | tinyint | NULL | 0 | Remove by sweeper job? | | ActionType | char(15) | NULL | | | ===== Primary Key ===== * AutoMatchShiftQueueID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | tempshiftplan | TempShiftPlanID | [[database:tables:pears_tempshiftplan|pears.TempShiftPlan (TempShiftPlanID)]] | ON DELETE CASCADE | ===== 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"."AutoMatchShiftQueue" -- Table comment: For use by Auto-matching procedures -- Statement count: 5 CREATE TABLE "pears"."AutoMatchShiftQueue" ( "AutoMatchShiftQueueID" bigint NOT NULL DEFAULT autoincrement ,"TempShiftPlanID" char(20) NULL ,"Created" timestamp NULL DEFAULT current timestamp ,"Completed" timestamp NULL ,"NotRequired" tinyint NULL DEFAULT 0 ,"ActionType" char(15) NULL ,PRIMARY KEY ("AutoMatchShiftQueueID" ASC) ) go COMMENT ON COLUMN "pears"."AutoMatchShiftQueue"."Completed" IS 'means has been used' go COMMENT ON COLUMN "pears"."AutoMatchShiftQueue"."NotRequired" IS 'Remove by sweeper job?' go COMMENT ON TABLE "pears"."AutoMatchShiftQueue" IS 'For use by Auto-matching procedures' go ALTER TABLE "pears"."AutoMatchShiftQueue" ADD FOREIGN KEY "tempshiftplan" ("TempShiftPlanID" ASC) REFERENCES "pears"."TempShiftPlan" ("TempShiftPlanID") ON DELETE CASCADE go