Table of Contents



pears.StaffExtTempdeskAccess

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

Description

Used to grant rights to specific tempdesks for users with restricted rights

Columns

Column Type Null Default Comment
StaffID char(20) NOT NULL
TempdeskID char(20) NOT NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
staff StaffID pears.staff (staffid) 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"."StaffExtTempdeskAccess"
-- Table comment: Used to grant rights to specific tempdesks for users with restricted rights
-- Statement count: 4
 
CREATE TABLE "pears"."StaffExtTempdeskAccess" (
    "StaffID"                        CHAR(20) NOT NULL
   ,"TempdeskID"                     CHAR(20) NOT NULL
   ,PRIMARY KEY ("StaffID" ASC,"TempdeskID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."StaffExtTempdeskAccess" IS 
	'Used to grant rights to specific tempdesks for users with restricted rights'
GO
 
 
ALTER TABLE "pears"."StaffExtTempdeskAccess"
    ADD NOT NULL FOREIGN KEY "staff" ("StaffID" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."StaffExtTempdeskAccess"
    ADD NOT NULL FOREIGN KEY "tempdesk" ("TempdeskID" ASC)
    REFERENCES "pears"."tempdesk" ("tempdeskid")
    ON DELETE CASCADE
GO