Table of Contents



pears.ContactEventSpeciality

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

Description

List of Divisions (?)

Columns

Column Type Null Default Comment
ContactEventSpecialityID char(20) NOT NULL
Name char(50) NOT NULL
DivisionID char(20) NULL
SortOrder smallint NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
division DivisionID pears.Division (divisionid) ON DELETE SET NULL

Referenced By

Indexes

Name Type Columns Detail
ContactEventSpeciality_sortorder Index DivisionID, SortOrder, Name

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."ContactEventSpeciality"
-- Table comment: List of Divisions (?)
-- Statement count: 4
 
CREATE TABLE "pears"."ContactEventSpeciality" (
    "ContactEventSpecialityID"       CHAR(20) NOT NULL
   ,"Name"                           CHAR(50) NOT NULL
   ,"DivisionID"                     CHAR(20) NULL
   ,"SortOrder"                      SMALLINT NULL
   ,PRIMARY KEY ("ContactEventSpecialityID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."ContactEventSpeciality" IS 
	'List of Divisions (?)'
GO
 
 
ALTER TABLE "pears"."ContactEventSpeciality"
    ADD FOREIGN KEY "division" ("DivisionID" ASC)
    REFERENCES "pears"."Division" ("divisionid")
    ON DELETE SET NULL
GO
 
 
CREATE INDEX "ContactEventSpeciality_sortorder" ON "pears"."ContactEventSpeciality"
    ( "DivisionID","SortOrder","Name" )
GO