====== pears.AutoMatchPersonConfig ====== 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 ^ | **AutoMatchPersonConfigID** | char(20) | NOT NULL | | | | PersonID | char(20) | NULL | | | | ContactStart | time | NULL | | Start Sending | | ContactEnd | time | NULL | | Stop Sending | | MaxEmails | integer | NULL | 100 | | | MaxSMS | integer | NULL | 100 | | | MaxPush | integer | NULL | 100 | | | MinDelayBetweenEmails | integer | NULL | 30 | in mins | | MinDelayBetweenSMS | integer | NULL | 30 | in mins | | MinDelayBetweenPush | integer | NULL | 30 | in mins | | StopFromDate | timestamp | NULL | | Holiday etc. may not be needed | | StopUntilDate | timestamp | NULL | | Holiday etc. may not be needed | ===== Primary Key ===== * AutoMatchPersonConfigID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | 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"."AutoMatchPersonConfig" -- Table comment: For use by Auto-matching procedures -- Statement count: 10 CREATE TABLE "pears"."AutoMatchPersonConfig" ( "AutoMatchPersonConfigID" char(20) NOT NULL ,"PersonID" char(20) NULL ,"ContactStart" time NULL ,"ContactEnd" time NULL ,"MaxEmails" integer NULL DEFAULT 100 ,"MaxSMS" integer NULL DEFAULT 100 ,"MaxPush" integer NULL DEFAULT 100 ,"MinDelayBetweenEmails" integer NULL DEFAULT 30 ,"MinDelayBetweenSMS" integer NULL DEFAULT 30 ,"MinDelayBetweenPush" integer NULL DEFAULT 30 ,"StopFromDate" timestamp NULL ,"StopUntilDate" timestamp NULL ,PRIMARY KEY ("AutoMatchPersonConfigID" ASC) ) go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."ContactStart" IS 'Start Sending' go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."ContactEnd" IS 'Stop Sending' go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."MinDelayBetweenEmails" IS 'in mins' go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."MinDelayBetweenSMS" IS 'in mins' go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."MinDelayBetweenPush" IS 'in mins' go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."StopFromDate" IS 'Holiday etc. may not be needed' go COMMENT ON COLUMN "pears"."AutoMatchPersonConfig"."StopUntilDate" IS 'Holiday etc. may not be needed' go COMMENT ON TABLE "pears"."AutoMatchPersonConfig" IS 'For use by Auto-matching procedures' go ALTER TABLE "pears"."AutoMatchPersonConfig" ADD FOREIGN KEY "person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE go