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.PDFExtraDocument ====== <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 ===== Additional Documents for scanned timesheets ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **PDFExtraDocumentID** | char(20) | NOT NULL | | | | TempTimesheetID | char(20) | NULL | | | | FileNamePath | char(250) | NULL | | | | FileType | char(1) | NOT NULL | | | | WasUsed | smallint | NOT NULL | 0 | | | TempProvTimesheetID | char(20) | NULL | | | | PDFImageBlobID | char(20) | NULL | | | | FileHash | char(40) | NULL | | | | DoNotAddtoInvoice | smallint | NULL | 0 | | | timesheetlineid | char(20) | NULL | | | ===== Primary Key ===== * PDFExtraDocumentID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | TempTimesheet | TempTimesheetID | [[database:tables:pears_temptimesheet|pears.TempTimeSheet (TempTimeSheetID)]] | ON DELETE CASCADE | | TempProvTimesheet | TempProvTimesheetID | [[database:tables:pears_tempprovtimesheet|pears.TempProvTimeSheet (TempProvTimeSheetID)]] | ON DELETE SET NULL | ===== 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"."PDFExtraDocument" -- Table comment: Additional Documents for scanned timesheets -- Statement count: 4 CREATE TABLE "pears"."PDFExtraDocument" ( "PDFExtraDocumentID" char(20) NOT NULL ,"TempTimesheetID" char(20) NULL ,"FileNamePath" char(250) NULL ,"FileType" char(1) NOT NULL ,"WasUsed" smallint NOT NULL DEFAULT 0 ,"TempProvTimesheetID" char(20) NULL ,"PDFImageBlobID" char(20) NULL ,"FileHash" char(40) NULL ,"DoNotAddtoInvoice" smallint NULL DEFAULT 0 ,"timesheetlineid" char(20) NULL ,PRIMARY KEY ("PDFExtraDocumentID" ASC) ) go COMMENT ON TABLE "pears"."PDFExtraDocument" IS 'Additional Documents for scanned timesheets' go ALTER TABLE "pears"."PDFExtraDocument" ADD FOREIGN KEY "TempTimesheet" ("TempTimesheetID" ASC) REFERENCES "pears"."TempTimeSheet" ("TempTimeSheetID") ON DELETE CASCADE go ALTER TABLE "pears"."PDFExtraDocument" ADD FOREIGN KEY "TempProvTimesheet" ("TempProvTimesheetID" ASC) REFERENCES "pears"."TempProvTimeSheet" ("TempProvTimeSheetID") ON DELETE SET NULL go </code> database/tables/pears_pdfextradocument.txt Last modified: 2026/08/07 19:24by 127.0.0.1