pears.TempShiftTemplateAllowed

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

Controls whether a particular Shift Template is allowed for an individual Vacancy. If no record for a given Vacancy all Shift Templates for the vacancy Department are allowed.

Column Type Null Default Comment
TempShiftTemplateID char(20) NOT NULL
VacancyID char(20) NOT NULL
  • TempShiftTemplateID, VacancyID
Constraint Columns References Delete/update action
TempShiftTemplate TempShiftTemplateID pears.TempShiftTemplate (TempShiftTemplateID) NOT NULL; ON DELETE CASCADE
Vacancy VacancyID pears.vacancy (vacancyid) 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"."TempShiftTemplateAllowed"
-- Table comment: Controls whether a particular Shift Template is allowed for an individual Vacancy. If no record for a given Vacancy all Shift Templates for the vacancy Department are allowed.
-- Statement count: 4
 
CREATE TABLE "pears"."TempShiftTemplateAllowed" (
    "TempShiftTemplateID"            CHAR(20) NOT NULL
   ,"VacancyID"                      CHAR(20) NOT NULL
   ,PRIMARY KEY ("TempShiftTemplateID" ASC,"VacancyID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."TempShiftTemplateAllowed" IS 
	'Controls whether a particular Shift Template is allowed for an individual Vacancy. If no record for a given Vacancy all Shift Templates for the vacancy Department are allowed.'
GO
 
 
ALTER TABLE "pears"."TempShiftTemplateAllowed"
    ADD NOT NULL FOREIGN KEY "TempShiftTemplate" ("TempShiftTemplateID" ASC)
    REFERENCES "pears"."TempShiftTemplate" ("TempShiftTemplateID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."TempShiftTemplateAllowed"
    ADD NOT NULL FOREIGN KEY "Vacancy" ("VacancyID" ASC)
    REFERENCES "pears"."vacancy" ("vacancyid")
    ON DELETE CASCADE
GO
  • database/tables/pears_tempshifttemplateallowed.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1