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.TempShiftTemplateAllowed ====== <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 ===== 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. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **TempShiftTemplateID** | char(20) | NOT NULL | | | | **VacancyID** | char(20) | NOT NULL | | | ===== Primary Key ===== * TempShiftTemplateID, VacancyID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | TempShiftTemplate | TempShiftTemplateID | [[database:tables:pears_tempshifttemplate|pears.TempShiftTemplate (TempShiftTemplateID)]] | NOT NULL; ON DELETE CASCADE | | Vacancy | VacancyID | [[database:tables:pears_vacancy|pears.vacancy (vacancyid)]] | NOT NULL; ON DELETE CASCADE | ===== 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"."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 </code> database/tables/pears_tempshifttemplateallowed.txt Last modified: 2026/08/07 19:24by 127.0.0.1