====== pears.storedselectionstaff ======
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 ^
| **storedselectionid** | char(20) | NOT NULL | | |
| **staffid** | char(20) | NOT NULL | | |
===== Primary Key =====
* storedselectionid, staffid
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| storedselection | storedselectionid | [[database:tables:pears_storedselection|pears.storedselection (storedselectionid)]] | NOT NULL; ON DELETE CASCADE |
| 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"."storedselectionstaff"
-- Table comment:
-- Statement count: 3
CREATE TABLE "pears"."storedselectionstaff" (
"storedselectionid" char(20) NOT NULL
,"staffid" char(20) NOT NULL
,PRIMARY KEY ("storedselectionid" ASC,"staffid" ASC)
)
go
ALTER TABLE "pears"."storedselectionstaff"
ADD NOT NULL FOREIGN KEY "storedselection" ("storedselectionid" ASC)
REFERENCES "pears"."storedselection" ("storedselectionid")
ON DELETE CASCADE
go
ALTER TABLE "pears"."storedselectionstaff"
ADD NOT NULL FOREIGN KEY "staff" ("staffid" ASC)
REFERENCES "pears"."staff" ("staffid")
ON DELETE CASCADE
go