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.SentCVs ====== <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 ===== Records of which candidates CVs were attached to particular contact events. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **contacteventid** | char(20) | NOT NULL | | | | **personid** | char(20) | NOT NULL | | | | progressid | char(20) | NULL | | | ===== Primary Key ===== * contacteventid, personid ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | contactevent | contacteventid | [[database:tables:pears_contactevent|pears.contactevent (contacteventid)]] | NOT NULL; ON DELETE CASCADE | | person | personid | [[database:tables:pears_person|pears.Person (personid)]] | NOT NULL; ON DELETE CASCADE | | progress | progressid | [[database:tables:pears_progress|pears.progress (progressid)]] | ON DELETE SET NULL | ===== 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"."SentCVs" -- Table comment: Records of which candidates CVs were attached to particular contact events. -- Statement count: 5 CREATE TABLE "pears"."SentCVs" ( "contacteventid" char(20) NOT NULL ,"personid" char(20) NOT NULL ,"progressid" char(20) NULL ,PRIMARY KEY ("contacteventid" ASC,"personid" ASC) ) go COMMENT ON TABLE "pears"."SentCVs" IS 'Records of which candidates CVs were attached to particular contact events.' go ALTER TABLE "pears"."SentCVs" ADD NOT NULL FOREIGN KEY "contactevent" ("contacteventid" ASC) REFERENCES "pears"."contactevent" ("contacteventid") ON DELETE CASCADE go ALTER TABLE "pears"."SentCVs" ADD NOT NULL FOREIGN KEY "person" ("personid" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE go ALTER TABLE "pears"."SentCVs" ADD FOREIGN KEY "progress" ("progressid" ASC) REFERENCES "pears"."progress" ("progressid") ON DELETE SET NULL go </code> database/tables/pears_sentcvs.txt Last modified: 2026/08/07 19:24by 127.0.0.1