====== pears.StaffSynety ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
Integration with Synety phone system.
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **StaffID** | char(20) | NOT NULL | | |
| AccountID | char(60) | NULL | | |
| Password | char(60) | NULL | | |
| NotificationToken | char(60) | NULL | | |
===== Primary Key =====
* StaffID
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | NOT NULL; ON DELETE CASCADE |
===== Referenced By =====
* No incoming foreign keys found.
===== Indexes =====
* No indexes found.
===== Triggers =====
* No triggers found.
===== Original SQL =====
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."StaffSynety"
-- Table comment: Integration with Synety phone system.
-- Statement count: 3
CREATE TABLE "pears"."StaffSynety" (
"StaffID" char(20) NOT NULL
,"AccountID" char(60) NULL
,"Password" char(60) NULL
,"NotificationToken" char(60) NULL
,PRIMARY KEY ("StaffID" ASC)
)
go
COMMENT ON TABLE "pears"."StaffSynety" IS
'Integration with Synety phone system.'
go
ALTER TABLE "pears"."StaffSynety"
ADD NOT NULL FOREIGN KEY "Staff" ("StaffID" ASC)
REFERENCES "pears"."staff" ("staffid")
ON DELETE CASCADE
go