pears.SentCVs

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
  • contacteventid, personid
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
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- 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
  • database/tables/pears_sentcvs.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1