pears.DocPackValidation
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
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 | 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 |
Referenced By
- No incoming foreign keys found.
Indexes
- No indexes found.
Triggers
- No triggers found.
Original 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