====== pears.VacancyPosition ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Frequently used position names - job titles. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **VacancyPositionID** | char(20) | NOT NULL | | | | Name | char(50) | NOT NULL | | | | DepartmentID | char(2) | NULL | | | | SortOrder | smallint | NULL | | | ===== Primary Key ===== * VacancyPositionID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | department | DepartmentID | [[database:tables:pears_department|pears.Department (departmentid)]] | ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | vacpos_sortorder | Index | DepartmentID, SortOrder, Name | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."VacancyPosition" -- Table comment: Frequently used position names - job titles. -- Statement count: 4 CREATE TABLE "pears"."VacancyPosition" ( "VacancyPositionID" char(20) NOT NULL ,"Name" char(50) NOT NULL ,"DepartmentID" char(2) NULL ,"SortOrder" smallint NULL ,PRIMARY KEY ("VacancyPositionID" ASC) ) go COMMENT ON TABLE "pears"."VacancyPosition" IS 'Frequently used position names - job titles.' go ALTER TABLE "pears"."VacancyPosition" ADD FOREIGN KEY "department" ("DepartmentID" ASC) REFERENCES "pears"."Department" ("departmentid") ON DELETE CASCADE go CREATE INDEX "vacpos_sortorder" ON "pears"."VacancyPosition" ( "DepartmentID","SortOrder","Name" ) go