Table of Contents



pears.StaffTeam

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

Columns

Column Type Null Default Comment
StaffTeamID char(20) NOT NULL
Description char(50) NULL
OwnerID char(20) NULL
SortOrder integer NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
Staff OwnerID pears.staff (staffid) ON DELETE CASCADE

Referenced By

Table Constraint Columns Referenced columns
pears.StaffTeamMember StaffTeam StaffTeamID StaffTeamID

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."StaffTeam"
-- Table comment: 
-- Statement count: 2
 
CREATE TABLE "pears"."StaffTeam" (
    "StaffTeamID"                    CHAR(20) NOT NULL
   ,"Description"                    CHAR(50) NULL
   ,"OwnerID"                        CHAR(20) NULL
   ,"SortOrder"                      INTEGER NULL
   ,PRIMARY KEY ("StaffTeamID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."StaffTeam"
    ADD FOREIGN KEY "Staff" ("OwnerID" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO