====== 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 ===== * StaffTeamID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Staff | OwnerID | [[database:tables:pears_staff|pears.staff (staffid)]] | ON DELETE CASCADE | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_staffteammember|pears.StaffTeamMember]] | StaffTeam | StaffTeamID | StaffTeamID | ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== 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