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.AutoMatchNotificationQueue ====== <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 ===== For use by Auto-matching procedures ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **AutoMatchNotificationQueueID** | bigint | NOT NULL | autoincrement | | | TempShiftPlanID | char(20) | NULL | | | | PersonID | char(20) | NULL | | | | Created | timestamp | NULL | current timestamp | | | EmailCompleted | timestamp | NULL | | means has been used successfully | | SMSCompleted | timestamp | NULL | | means has been used successfully | | PushCompleted | timestamp | NULL | | means has been used successfully | | NotRequired | tinyint | NULL | 0 | Remove by sweeper job? | | ShiftGroup | char(20) | NULL | | | | ShiftGroupOnly | tinyint | NULL | 0 | | | NewRating | smallint | NULL | 0 | | | NotNewRating | smallint | NULL | 0 | | | NewWorkers | smallint | NULL | 0 | | | QtyWorkers | smallint | NULL | 0 | | | LeadTime | integer | NOT NULL | | in hours may not be needed | | Urgency | smallint | NULL | | may not be needed | | Updated | timestamp | NULL | | may not be needed | | MaxEmails | integer | NULL | | | | MaxSMS | integer | NULL | | | | MaxPush | integer | NULL | | | | MinDelayBetweenEmails | integer | NULL | | | | MinDelayBetweenSMS | integer | NULL | | | | MinDelayBetweenPush | integer | NULL | | | | ContactStart | time | NULL | | Start Sending | | ContactEnd | time | NULL | | Stop Sending | | Email | smallint | NULL | 0 | | | SMS | smallint | NULL | 0 | | | Push | smallint | NULL | 0 | | | EmailSent | timestamp | NULL | | | | SMSSent | timestamp | NULL | | | | PushSent | timestamp | NULL | | | | EmailError | char(255) | NULL | | | | SMSError | char(255) | NULL | | | | PushError | char(255) | NULL | | | | Locked | timestamp | NULL | | job using this | | DivisionID | char(20) | NULL | | | ===== Primary Key ===== * AutoMatchNotificationQueueID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | tempshiftplan | TempShiftPlanID | [[database:tables:pears_tempshiftplan|pears.TempShiftPlan (TempShiftPlanID)]] | ON DELETE CASCADE | | person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | ON DELETE CASCADE | | division | DivisionID | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE CASCADE | ===== 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"."AutoMatchNotificationQueue" -- Table comment: For use by Auto-matching procedures -- Statement count: 15 CREATE TABLE "pears"."AutoMatchNotificationQueue" ( "AutoMatchNotificationQueueID" bigint NOT NULL DEFAULT autoincrement ,"TempShiftPlanID" char(20) NULL ,"PersonID" char(20) NULL ,"Created" timestamp NULL DEFAULT current timestamp ,"EmailCompleted" timestamp NULL ,"SMSCompleted" timestamp NULL ,"PushCompleted" timestamp NULL ,"NotRequired" tinyint NULL DEFAULT 0 ,"ShiftGroup" char(20) NULL ,"ShiftGroupOnly" tinyint NULL DEFAULT 0 ,"NewRating" smallint NULL DEFAULT 0 ,"NotNewRating" smallint NULL DEFAULT 0 ,"NewWorkers" smallint NULL DEFAULT 0 ,"QtyWorkers" smallint NULL DEFAULT 0 ,"LeadTime" integer NOT NULL ,"Urgency" smallint NULL ,"Updated" timestamp NULL ,"MaxEmails" integer NULL ,"MaxSMS" integer NULL ,"MaxPush" integer NULL ,"MinDelayBetweenEmails" integer NULL ,"MinDelayBetweenSMS" integer NULL ,"MinDelayBetweenPush" integer NULL ,"ContactStart" time NULL ,"ContactEnd" time NULL ,"Email" smallint NULL DEFAULT 0 ,"SMS" smallint NULL DEFAULT 0 ,"Push" smallint NULL DEFAULT 0 ,"EmailSent" timestamp NULL ,"SMSSent" timestamp NULL ,"PushSent" timestamp NULL ,"EmailError" char(255) NULL ,"SMSError" char(255) NULL ,"PushError" char(255) NULL ,"Locked" timestamp NULL ,"DivisionID" char(20) NULL ,PRIMARY KEY ("AutoMatchNotificationQueueID" ASC) ) go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."EmailCompleted" IS 'means has been used successfully' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."SMSCompleted" IS 'means has been used successfully' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."PushCompleted" IS 'means has been used successfully' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."NotRequired" IS 'Remove by sweeper job?' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."LeadTime" IS 'in hours may not be needed' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."Urgency" IS 'may not be needed' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."Updated" IS 'may not be needed' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."ContactStart" IS 'Start Sending' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."ContactEnd" IS 'Stop Sending' go COMMENT ON COLUMN "pears"."AutoMatchNotificationQueue"."Locked" IS 'job using this' go COMMENT ON TABLE "pears"."AutoMatchNotificationQueue" IS 'For use by Auto-matching procedures' go ALTER TABLE "pears"."AutoMatchNotificationQueue" ADD FOREIGN KEY "tempshiftplan" ("TempShiftPlanID" ASC) REFERENCES "pears"."TempShiftPlan" ("TempShiftPlanID") ON DELETE CASCADE go ALTER TABLE "pears"."AutoMatchNotificationQueue" ADD FOREIGN KEY "person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE go ALTER TABLE "pears"."AutoMatchNotificationQueue" ADD FOREIGN KEY "division" ("DivisionID" ASC) REFERENCES "pears"."Division" ("divisionid") ON DELETE CASCADE go </code> database/tables/pears_automatchnotificationqueue.txt Last modified: 2026/08/07 19:24by 127.0.0.1