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.DocPackValidation ====== <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 ===== Used in conjunction with DocumentPackAllowed(). Rows inserted by exe and checked by the (user defined function) which needs to clean up table as required. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **DocPackValidationID** | char(20) | NOT NULL | | | | DocumentPackID | char(20) | NULL | | | | PersonID | char(20) | NULL | | | | VacancyID | char(20) | NULL | | | | StaffID | char(20) | NULL | | | | DocumentTypeID | char(20) | NULL | | | ===== Primary Key ===== * DocPackValidationID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | DocumentPack | DocumentPackID | [[database:tables:pears_documentpack|pears.DocumentPack (DocumentPackID)]] | ON DELETE CASCADE | | Person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | ON DELETE CASCADE | | Vacancy | VacancyID | [[database:tables:pears_vacancy|pears.vacancy (vacancyid)]] | ON DELETE CASCADE | | Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | ON DELETE CASCADE | | DocumentType | DocumentTypeID | [[database:tables:pears_documenttype|pears.DocumentType (DocumentTypeID)]] | 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"."DocPackValidation" -- Table comment: Used in conjunction with DocumentPackAllowed(). Rows inserted by exe and checked by the (user defined function) which needs to clean up table as required. -- Statement count: 7 CREATE TABLE "pears"."DocPackValidation" ( "DocPackValidationID" char(20) NOT NULL ,"DocumentPackID" char(20) NULL ,"PersonID" char(20) NULL ,"VacancyID" char(20) NULL ,"StaffID" char(20) NULL ,"DocumentTypeID" char(20) NULL ,PRIMARY KEY ("DocPackValidationID" ASC) ) go COMMENT ON TABLE "pears"."DocPackValidation" IS 'Used in conjunction with DocumentPackAllowed(). Rows inserted by exe and checked by the (user defined function) which needs to clean up table as required.' go ALTER TABLE "pears"."DocPackValidation" ADD FOREIGN KEY "DocumentPack" ("DocumentPackID" ASC) REFERENCES "pears"."DocumentPack" ("DocumentPackID") ON DELETE CASCADE go ALTER TABLE "pears"."DocPackValidation" ADD FOREIGN KEY "Person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE go ALTER TABLE "pears"."DocPackValidation" ADD FOREIGN KEY "Vacancy" ("VacancyID" ASC) REFERENCES "pears"."vacancy" ("vacancyid") ON DELETE CASCADE go ALTER TABLE "pears"."DocPackValidation" ADD FOREIGN KEY "Staff" ("StaffID" ASC) REFERENCES "pears"."staff" ("staffid") ON DELETE CASCADE go ALTER TABLE "pears"."DocPackValidation" ADD FOREIGN KEY "DocumentType" ("DocumentTypeID" ASC) REFERENCES "pears"."DocumentType" ("DocumentTypeID") ON DELETE CASCADE go </code> database/tables/pears_docpackvalidation.txt Last modified: 2026/08/07 19:24by 127.0.0.1