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.EmailToSendAttachment ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **EmailToSendAttachmentID** | bigint | NOT NULL | autoincrement | | | EmailToSendID | char(20) | NOT NULL | | | | IQACDocumentID | char(8) | NULL | | | | OLEDocumentID | char(20) | NULL | | | | BlobstoreID | char(20) | NULL | | | | BlobstoreClass | char(1) | NULL | | | | FileLocation | long varchar | NULL | | full path and filename of attachment if not in Blobstore | | AttachmentType | char(10) | NULL | | invoice etc for special behaviour | ===== Primary Key ===== * EmailToSendAttachmentID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | EmailToSend | EmailToSendID | [[database:tables:pears_emailtosend|pears.EmailToSend (EmailToSendID)]] | NOT NULL; ON DELETE CASCADE | | IQacDocument | IQACDocumentID | [[database:tables:pears_iqacdocument|pears.IQacDocument (DocumentID)]] | ON DELETE CASCADE | | oledocument | OLEDocumentID | [[database:tables:pears_oledocument|pears.oledocument (oledocumentid)]] | 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"."EmailToSendAttachment" -- Table comment: -- Statement count: 6 CREATE TABLE "pears"."EmailToSendAttachment" ( "EmailToSendAttachmentID" bigint NOT NULL DEFAULT autoincrement ,"EmailToSendID" char(20) NOT NULL ,"IQACDocumentID" char(8) NULL ,"OLEDocumentID" char(20) NULL ,"BlobstoreID" char(20) NULL ,"BlobstoreClass" char(1) NULL ,"FileLocation" long varchar NULL ,"AttachmentType" char(10) NULL ,PRIMARY KEY ("EmailToSendAttachmentID" ASC) ) go COMMENT ON COLUMN "pears"."EmailToSendAttachment"."FileLocation" IS 'full path and filename of attachment if not in Blobstore' go COMMENT ON COLUMN "pears"."EmailToSendAttachment"."AttachmentType" IS 'invoice etc for special behaviour' go ALTER TABLE "pears"."EmailToSendAttachment" ADD NOT NULL FOREIGN KEY "EmailToSend" ("EmailToSendID" ASC) REFERENCES "pears"."EmailToSend" ("EmailToSendID") ON DELETE CASCADE go ALTER TABLE "pears"."EmailToSendAttachment" ADD FOREIGN KEY "IQacDocument" ("IQACDocumentID" ASC) REFERENCES "pears"."IQacDocument" ("DocumentID") ON DELETE CASCADE go ALTER TABLE "pears"."EmailToSendAttachment" ADD FOREIGN KEY "oledocument" ("OLEDocumentID" ASC) REFERENCES "pears"."oledocument" ("oledocumentid") ON DELETE CASCADE go </code> database/tables/pears_emailtosendattachment.txt Last modified: 2026/08/07 19:24by 127.0.0.1