pears.BroadbeanUser

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

Broadbean user login details

Column Type Null Default Comment
StaffID char(20) NOT NULL
UserName char(100) NOT NULL
Password char(100) NOT NULL
ApiKey char(60) NULL
ContactTelephone char(30) NULL
ContactAddress char(250) NULL
ContactName char(60) NULL
ContactEmail char(100) NULL
Token char(100) NULL
  • StaffID
Constraint Columns References Delete/update action
staff StaffID pears.staff (staffid) 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"."BroadbeanUser"
-- Table comment: Broadbean user login details
-- Statement count: 3
 
CREATE TABLE "pears"."BroadbeanUser" (
    "StaffID"                        CHAR(20) NOT NULL
   ,"UserName"                       CHAR(100) NOT NULL
   ,"Password"                       CHAR(100) NOT NULL
   ,"ApiKey"                         CHAR(60) NULL
   ,"ContactTelephone"               CHAR(30) NULL
   ,"ContactAddress"                 CHAR(250) NULL
   ,"ContactName"                    CHAR(60) NULL
   ,"ContactEmail"                   CHAR(100) NULL
   ,"Token"                          CHAR(100) NULL
   ,PRIMARY KEY ("StaffID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."BroadbeanUser" IS 
	'Broadbean user login details'
GO
 
 
ALTER TABLE "pears"."BroadbeanUser"
    ADD NOT NULL FOREIGN KEY "staff" ("StaffID" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
  • database/tables/pears_broadbeanuser.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1