====== 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 =====
* contactoutcomeid
===== Foreign Keys =====
* No outgoing foreign keys found.
===== Referenced By =====
* No incoming foreign keys found.
===== 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