pears.StaffExtTempdeskAccess

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

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

Column Type Null Default Comment
StaffID char(20) NOT NULL
TempdeskID char(20) NOT NULL
  • StaffID, TempdeskID
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
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- 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
  • database/tables/pears_staffexttempdeskaccess.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1