====== pears.CustomWPFields ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Contains definitions of additional merge fields for Word. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | FieldCategory | char(3) | NULL | | app, com, vac, prg, plc, con | | FieldName | char(30) | NULL | | No spaces or punctuation | | FieldDescription | char(50) | NOT NULL | | | | FieldSelect | long varchar | NOT NULL | | e.g. select replacestr(othernotes,char(10),'',0) from person where personid=# | | SortOrder | smallint | NULL | | | | **CustomWPFieldsID** | char(20) | NOT NULL | | | | NotificationsOnly | tinyint | NULL | | | ===== Primary Key ===== * CustomWPFieldsID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_customwpfieldslink|pears.CustomWPFieldsLink]] | CustomWPFields | CustomWPFieldsID | CustomWPFieldsID | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | CustomWPFields_CategoryName | Unique index | FieldCategory, FieldName | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."CustomWPFields" -- Table comment: Contains definitions of additional merge fields for Word. -- Statement count: 6 CREATE TABLE "pears"."CustomWPFields" ( "FieldCategory" char(3) NULL ,"FieldName" char(30) NULL ,"FieldDescription" char(50) NOT NULL ,"FieldSelect" long varchar NOT NULL ,"SortOrder" smallint NULL ,"CustomWPFieldsID" char(20) NOT NULL ,"NotificationsOnly" tinyint NULL ,PRIMARY KEY ("CustomWPFieldsID" ASC) ) go COMMENT ON COLUMN "pears"."CustomWPFields"."FieldCategory" IS 'app, com, vac, prg, plc, con' go COMMENT ON COLUMN "pears"."CustomWPFields"."FieldName" IS 'No spaces or punctuation' go COMMENT ON COLUMN "pears"."CustomWPFields"."FieldSelect" IS 'e.g. select replacestr(othernotes,char(10),'''',0) from person where personid=#' go COMMENT ON TABLE "pears"."CustomWPFields" IS 'Contains definitions of additional merge fields for Word.' go CREATE UNIQUE INDEX "CustomWPFields_CategoryName" ON "pears"."CustomWPFields" ( "FieldCategory","FieldName" ) go