Table of Contents



pears.TempDeskAgencyPoolMember

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

Description

Way of linking companies or secondary agency companies with desks.

Columns

Column Type Null Default Comment
CompanyID char(20) NOT NULL
TempDeskID char(20) NOT NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
Company CompanyID pears.Company (companyid) NOT NULL; ON DELETE CASCADE
TempDesk TempDeskID pears.tempdesk (tempdeskid) NOT NULL; ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempDeskAgencyPoolMember"
-- Table comment: Way of linking companies or secondary agency companies with desks.
-- Statement count: 4
 
CREATE TABLE "pears"."TempDeskAgencyPoolMember" (
    "CompanyID"                      CHAR(20) NOT NULL
   ,"TempDeskID"                     CHAR(20) NOT NULL
   ,PRIMARY KEY ("CompanyID" ASC,"TempDeskID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."TempDeskAgencyPoolMember" IS 
	'Way of linking companies or secondary agency companies with desks.'
GO
 
 
ALTER TABLE "pears"."TempDeskAgencyPoolMember"
    ADD NOT NULL FOREIGN KEY "Company" ("CompanyID" ASC)
    REFERENCES "pears"."Company" ("companyid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."TempDeskAgencyPoolMember"
    ADD NOT NULL FOREIGN KEY "TempDesk" ("TempDeskID" ASC)
    REFERENCES "pears"."tempdesk" ("tempdeskid")
    ON DELETE CASCADE
GO