pears.templatestore

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

Word document template details. Actual templates are in the BlobStore with Class 'T'.

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
  • templateid
Constraint Columns References Delete/update action
agencydetails agencyid pears.agencydetails (agencyid) ON DELETE SET NULL
Table Constraint Columns Referenced columns
pears.templatestoredivision templatestore templateid templateid
pears.templatestorestaff templatestore templateid templateid
  • No indexes found.
  • No triggers found.
-- 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
  • database/tables/pears_templatestore.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1