Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Records of which candidates CVs were attached to particular contact events.
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| contacteventid | char(20) | NOT NULL | ||
| personid | char(20) | NOT NULL | ||
| progressid | char(20) | NULL |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| contactevent | contacteventid | pears.contactevent (contacteventid) | NOT NULL; ON DELETE CASCADE |
| person | personid | pears.Person (personid) | NOT NULL; ON DELETE CASCADE |
| progress | progressid | pears.progress (progressid) | ON DELETE SET NULL |
-- 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