pears.DocPackValidation

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

Used in conjunction with DocumentPackAllowed(). Rows inserted by exe and checked by the (user defined function) which needs to clean up table as required.

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
  • DocPackValidationID
Constraint Columns References Delete/update action
DocumentPack DocumentPackID pears.DocumentPack (DocumentPackID) ON DELETE CASCADE
Person PersonID pears.Person (personid) ON DELETE CASCADE
Vacancy VacancyID pears.vacancy (vacancyid) ON DELETE CASCADE
Staff StaffID pears.staff (staffid) ON DELETE CASCADE
DocumentType DocumentTypeID pears.DocumentType (DocumentTypeID) 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"."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
  • database/tables/pears_docpackvalidation.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1