====== pears.storedselectionmember ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Link between Stored Selection and Person, Company, Vacancy, Placement records ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **storedselectionid** | char(20) | NOT NULL | | | | **record** | char(20) | NOT NULL | | | ===== Primary Key ===== * storedselectionid, record ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | storedselection | storedselectionid | [[database:tables:pears_storedselection|pears.storedselection (storedselectionid)]] | 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"."storedselectionmember" -- Table comment: Link between Stored Selection and Person, Company, Vacancy, Placement records -- Statement count: 3 CREATE TABLE "pears"."storedselectionmember" ( "storedselectionid" char(20) NOT NULL ,"record" char(20) NOT NULL ,PRIMARY KEY ("storedselectionid" ASC,"record" ASC) ) go COMMENT ON TABLE "pears"."storedselectionmember" IS 'Link between Stored Selection and Person, Company, Vacancy, Placement records' go ALTER TABLE "pears"."storedselectionmember" ADD NOT NULL FOREIGN KEY "storedselection" ("storedselectionid" ASC) REFERENCES "pears"."storedselection" ("storedselectionid") ON DELETE CASCADE go