Table of Contents



pears.BroadbeanUser

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

Description

Broadbean user login details

Columns

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

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
staff StaffID pears.staff (staffid) NOT NULL; ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- 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