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.templatestore ====== <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 ===== Word document template details. Actual templates are in the BlobStore with Class 'T'. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **templateid** | char(20) | NOT NULL | | | | description | char(50) | NULL | | | | templatetype | char(1) | NULL | | | | agencyid | char(20) | NULL | | | | sortorder | smallint | NULL | | | | esign | tinyint | NULL | 0 | | | FormFields | tinyint | NULL | 0 | Uses form fields, not document variables | | Defunct | tinyint | NULL | 0 | | ===== Primary Key ===== * templateid ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | agencydetails | agencyid | [[database:tables:pears_agencydetails|pears.agencydetails (agencyid)]] | ON DELETE SET NULL | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_templatestoredivision|pears.templatestoredivision]] | templatestore | templateid | templateid | | [[database:tables:pears_templatestorestaff|pears.templatestorestaff]] | templatestore | templateid | templateid | ===== 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"."templatestore" -- Table comment: Word document template details. Actual templates are in the BlobStore with Class 'T'. -- Statement count: 4 CREATE TABLE "pears"."templatestore" ( "templateid" char(20) NOT NULL ,"description" char(50) NULL ,"templatetype" char(1) NULL ,"agencyid" char(20) NULL ,"sortorder" smallint NULL ,"esign" tinyint NULL DEFAULT 0 ,"FormFields" tinyint NULL DEFAULT 0 ,"Defunct" tinyint NULL DEFAULT 0 ,PRIMARY KEY ("templateid" ASC) ) go COMMENT ON COLUMN "pears"."templatestore"."FormFields" IS 'Uses form fields, not document variables' go COMMENT ON TABLE "pears"."templatestore" IS 'Word document template details. Actual templates are in the BlobStore with Class ''T''.' go ALTER TABLE "pears"."templatestore" ADD FOREIGN KEY "agencydetails" ("agencyid" ASC) REFERENCES "pears"."agencydetails" ("agencyid") ON DELETE SET NULL go </code> database/tables/pears_templatestore.txt Last modified: 2026/08/07 19:24by 127.0.0.1