====== pears.VacancyRole ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Capacities in which Staff records are related to a Vacancy (eg HR Manager etc) ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **VacancyRoleID** | char(20) | NOT NULL | | | | Description | char(50) | NULL | | | | ExternalCode | char(20) | NULL | | | | SortOrder | integer | NULL | | | | WebMaintain | smallint | NULL | | | ===== Primary Key ===== * VacancyRoleID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_company|pears.Company]] | VacancyRole | DefaultVacancyRoleID | VacancyRoleID | | [[database:tables:pears_vacancyroleallocation|pears.VacancyRoleAllocation]] | VacancyRole | VacancyRoleID | VacancyRoleID | ===== Indexes ===== * No indexes found. ===== Triggers ===== ^ Name ^ Timing ^ Event ^ | WPK_vacancyrole_VACANCYROLE | after | insert,delete,update order 1 | ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."VacancyRole" -- Table comment: Capacities in which Staff records are related to a Vacancy (eg HR Manager etc) -- Statement count: 4 CREATE TABLE "pears"."VacancyRole" ( "VacancyRoleID" char(20) NOT NULL ,"Description" char(50) NULL ,"ExternalCode" char(20) NULL ,"SortOrder" integer NULL ,"WebMaintain" smallint NULL ,PRIMARY KEY ("VacancyRoleID" ASC) ) go COMMENT ON TABLE "pears"."VacancyRole" IS 'Capacities in which Staff records are related to a Vacancy (eg HR Manager etc)' go create trigger "WPK_vacancyrole_VACANCYROLE" after insert,delete,update order 1 on "pears"."vacancyrole" for each statement begin call "WPKTrackChange"('P','VACANCYROLE') end go COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."VacancyRole"."WPK_vacancyrole_VACANCYROLE" IS {create trigger WPK_vacancyrole_VACANCYROLE after insert,delete,update order 1 on vacancyrole for each statement begin call WPKTrackChange('P','VACANCYROLE') end } go