Table of Contents



pears.contactoutcome

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

Description

Possible Contact Event Outcomes and associated default call back days.

Columns

Column Type Null Default Comment
contactoutcomeid char(20) NOT NULL
description char(100) NOT NULL
sortorder smallint NULL
callbackdays smallint NULL

Primary Key

Foreign Keys

Referenced By

Indexes

Name Type Columns Detail
contactoutcome_sortorder Index sortorder

Triggers

Name Timing Event
WPK_contactoutcome_CONTACTOUTCOME after insert,delete,update order 1

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."contactoutcome"
-- Table comment: Possible Contact Event Outcomes and associated default call back days.
-- Statement count: 5
 
CREATE TABLE "pears"."contactoutcome" (
    "contactoutcomeid"               CHAR(20) NOT NULL
   ,"description"                    CHAR(100) NOT NULL
   ,"sortorder"                      SMALLINT NULL
   ,"callbackdays"                   SMALLINT NULL
   ,PRIMARY KEY ("contactoutcomeid" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."contactoutcome" IS 
	'Possible Contact Event Outcomes and associated default call back days.'
GO
 
 
CREATE INDEX "contactoutcome_sortorder" ON "pears"."contactoutcome"
    ( "sortorder" )
GO
 
 
CREATE TRIGGER "WPK_contactoutcome_CONTACTOUTCOME" after INSERT,DELETE,UPDATE ORDER 1 ON
"pears"."contactoutcome"
FOR each statement
BEGIN
  CALL "WPKTrackChange"('P','CONTACTOUTCOME')
END
GO
 
 
COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."contactoutcome"."WPK_contactoutcome_CONTACTOUTCOME" IS 
{CREATE TRIGGER WPK_contactoutcome_CONTACTOUTCOME 
 after INSERT,DELETE,UPDATE ORDER 1 ON
contactoutcome
FOR each statement
BEGIN
  CALL WPKTrackChange('P','CONTACTOUTCOME')
END
}
GO