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 |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| staff | staffid | pears.staff (staffid) | ON DELETE SET NULL |
| agencydetails | agencyid | pears.agencydetails (agencyid) | ON DELETE SET NULL |
-- 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