pears.vacancy_team

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Allows additional Staff records to be linked to Vacancy records

Column Type Null Default Comment
vacancyid char(20) NOT NULL
staffid char(20) NOT NULL
  • vacancyid, staffid
Constraint Columns References Delete/update action
vacancy vacancyid pears.vacancy (vacancyid) NOT NULL; ON DELETE CASCADE
staff staffid pears.staff (staffid) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."vacancy_team"
-- Table comment: Allows additional Staff records to be linked to Vacancy records
-- Statement count: 4
 
CREATE TABLE "pears"."vacancy_team" (
    "vacancyid"                      CHAR(20) NOT NULL
   ,"staffid"                        CHAR(20) NOT NULL
   ,PRIMARY KEY ("vacancyid" ASC,"staffid" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."vacancy_team" IS 
	'Allows additional Staff records to be linked to Vacancy records'
GO
 
 
ALTER TABLE "pears"."vacancy_team"
    ADD NOT NULL FOREIGN KEY "vacancy" ("vacancyid" ASC)
    REFERENCES "pears"."vacancy" ("vacancyid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."vacancy_team"
    ADD NOT NULL FOREIGN KEY "staff" ("staffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
  • database/tables/pears_vacancy_team.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1