pears.mailmerge

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

Pointers to OLE documents in Blobstore (class M) which are individual users own Word mail merge templates.

Column Type Null Default Comment
mailmergeid char(20) NOT NULL
name char(50) NULL
staffid char(20) NULL
agencyid char(20) NULL
FormFields tinyint NULL 0 Uses form fields, not document variables
  • mailmergeid
Constraint Columns References Delete/update action
staff staffid pears.staff (staffid) ON DELETE SET NULL
agencydetails agencyid pears.agencydetails (agencyid) ON DELETE SET NULL
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."mailmerge"
-- Table comment: Pointers to OLE documents in Blobstore (class M) which are individual users own Word mail merge templates.
-- Statement count: 5
 
CREATE TABLE "pears"."mailmerge" (
    "mailmergeid"                    CHAR(20) NOT NULL
   ,"name"                           CHAR(50) NULL
   ,"staffid"                        CHAR(20) NULL
   ,"agencyid"                       CHAR(20) NULL
   ,"FormFields"                     tinyint NULL DEFAULT 0
   ,PRIMARY KEY ("mailmergeid" ASC) 
)
GO
 
 
COMMENT ON COLUMN "pears"."mailmerge"."FormFields" IS 
	'Uses form fields, not document variables'
GO
 
 
COMMENT ON TABLE "pears"."mailmerge" IS 
	'Pointers to OLE documents in Blobstore (class M) which are individual users own Word mail merge templates.'
GO
 
 
ALTER TABLE "pears"."mailmerge"
    ADD FOREIGN KEY "staff" ("staffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE SET NULL
GO
 
 
ALTER TABLE "pears"."mailmerge"
    ADD FOREIGN KEY "agencydetails" ("agencyid" ASC)
    REFERENCES "pears"."agencydetails" ("agencyid")
    ON DELETE SET NULL
GO
  • database/tables/pears_mailmerge.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1