====== pears.mailerselectionmember ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Candidate/client contacts on mailchimp list. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **MailerSelectionID** | char(20) | NOT NULL | | | | **Record** | char(20) | NOT NULL | | | | DateSubscribed | date | NULL | | | | email | char(100) | NULL | | | | Status | smallint | NULL | | | | unsubscribe | tinyint | NULL | 0 | | ===== Primary Key ===== * MailerSelectionID, Record ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | mailerselection | MailerSelectionID | [[database:tables:pears_mailerselection|pears.mailerselection (MailerSelectionID)]] | NOT NULL; 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"."mailerselectionmember" -- Table comment: Candidate/client contacts on mailchimp list. -- Statement count: 3 CREATE TABLE "pears"."mailerselectionmember" ( "MailerSelectionID" char(20) NOT NULL ,"Record" char(20) NOT NULL ,"DateSubscribed" date NULL ,"email" char(100) NULL ,"Status" smallint NULL ,"unsubscribe" tinyint NULL DEFAULT 0 ,PRIMARY KEY ("MailerSelectionID" ASC,"Record" ASC) ) go COMMENT ON TABLE "pears"."mailerselectionmember" IS 'Candidate/client contacts on mailchimp list.' go ALTER TABLE "pears"."mailerselectionmember" ADD NOT NULL FOREIGN KEY "mailerselection" ("MailerSelectionID" ASC) REFERENCES "pears"."mailerselection" ("MailerSelectionID") ON DELETE CASCADE go