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.DocumentStampDepartment ====== <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 ===== Links Stamp Images to Departments. Images with no record are available for all Departments. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **DocumentStampDepartmentID** | char(20) | NOT NULL | | | | DepartmentID | char(2) | NULL | | | | DocumentStampID | char(20) | NULL | | | ===== Primary Key ===== * DocumentStampDepartmentID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Department | DepartmentID | [[database:tables:pears_department|pears.Department (departmentid)]] | ON DELETE CASCADE | | DocumentStamp | DocumentStampID | [[database:tables:pears_documentstamp|pears.DocumentStamp (DocumentStampID)]] | 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"."DocumentStampDepartment" -- Table comment: Links Stamp Images to Departments. Images with no record are available for all Departments. -- Statement count: 4 CREATE TABLE "pears"."DocumentStampDepartment" ( "DocumentStampDepartmentID" char(20) NOT NULL ,"DepartmentID" char(2) NULL ,"DocumentStampID" char(20) NULL ,PRIMARY KEY ("DocumentStampDepartmentID" ASC) ) go COMMENT ON TABLE "pears"."DocumentStampDepartment" IS 'Links Stamp Images to Departments. Images with no record are available for all Departments.' go ALTER TABLE "pears"."DocumentStampDepartment" ADD FOREIGN KEY "Department" ("DepartmentID" ASC) REFERENCES "pears"."Department" ("departmentid") ON DELETE CASCADE go ALTER TABLE "pears"."DocumentStampDepartment" ADD FOREIGN KEY "DocumentStamp" ("DocumentStampID" ASC) REFERENCES "pears"."DocumentStamp" ("DocumentStampID") ON DELETE CASCADE go </code> database/tables/pears_documentstampdepartment.txt Last modified: 2026/08/07 19:24by 127.0.0.1