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.contactclass ====== <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 ===== Types of Contact Event. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **classcode** | char(2) | NOT NULL | | | | classdescrip | char(50) | NULL | | | | sortorder | smallint | NULL | | | | EmailSignatureID | char(20) | NULL | | | | ComboVisibility | char(25) | NULL | | | | attachfilename | char(254) | NULL | | This is CLIENT | | personattachfilename | char(254) | NULL | | | | AutoClose | smallint | NULL | | | | IsHeadHunt | smallint | NULL | 0 | | ===== Primary Key ===== * classcode ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | EmailSignature | EmailSignatureID | [[database:tables:pears_emailsignature|pears.EmailSignature (EmailSignatureID)]] | ON DELETE SET NULL | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_contactevent|pears.contactevent]] | contactclass | classcode | classcode | | [[database:tables:pears_contclasspersondivfilter|pears.ContClassPersonDivFilter]] | contactclass | ClassCode | classcode | | [[database:tables:pears_notificationtemplate|pears.NotificationTemplate]] | contactclass | ClassCode | classcode | | [[database:tables:pears_status|pears.status]] | contactclass | ContactEventClass | classcode | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | contactclass_sortorder | Index | sortorder | | ===== Triggers ===== ^ Name ^ Timing ^ Event ^ | WPK_contactclass_CONTACTCLASS | after | insert,delete,update order 1 | ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."contactclass" -- Table comment: Types of Contact Event. -- Statement count: 7 CREATE TABLE "pears"."contactclass" ( "classcode" char(2) NOT NULL ,"classdescrip" char(50) NULL ,"sortorder" smallint NULL ,"EmailSignatureID" char(20) NULL ,"ComboVisibility" char(25) NULL ,"attachfilename" char(254) NULL ,"personattachfilename" char(254) NULL ,"AutoClose" smallint NULL ,"IsHeadHunt" smallint NULL DEFAULT 0 ,PRIMARY KEY ("classcode" ASC) ) go COMMENT ON COLUMN "pears"."contactclass"."attachfilename" IS 'This is CLIENT' go COMMENT ON TABLE "pears"."contactclass" IS 'Types of Contact Event.' go ALTER TABLE "pears"."contactclass" ADD FOREIGN KEY "EmailSignature" ("EmailSignatureID" ASC) REFERENCES "pears"."EmailSignature" ("EmailSignatureID") ON DELETE SET NULL go CREATE INDEX "contactclass_sortorder" ON "pears"."contactclass" ( "sortorder" ) go create trigger "WPK_contactclass_CONTACTCLASS" after insert,delete,update order 1 on "pears"."contactclass" for each statement begin call "WPKTrackChange"('P','CONTACTCLASS') end go COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."contactclass"."WPK_contactclass_CONTACTCLASS" IS {create trigger WPK_contactclass_CONTACTCLASS after insert,delete,update order 1 on contactclass for each statement begin call WPKTrackChange('P','CONTACTCLASS') end } go </code> database/tables/pears_contactclass.txt Last modified: 2026/08/07 19:24by 127.0.0.1