Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| TrengoSentID | char(20) | NOT NULL | ||
| TrengoID | integer | NULL | ||
| WhoSent | char(20) | NULL | ||
| Personid | char(20) | NULL | ||
| WhenSent | timestamp | NULL |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| Trengo | TrengoID | pears.Trengo (TrengoID) | ON DELETE CASCADE |
| Staff | WhoSent | pears.staff (staffid) | ON DELETE SET NULL |
| Person | Personid | pears.Person (personid) | ON DELETE SET NULL |
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."TrengoSent" -- Table comment: -- Statement count: 4 CREATE TABLE "pears"."TrengoSent" ( "TrengoSentID" CHAR(20) NOT NULL ,"TrengoID" INTEGER NULL ,"WhoSent" CHAR(20) NULL ,"Personid" CHAR(20) NULL ,"WhenSent" TIMESTAMP NULL ,PRIMARY KEY ("TrengoSentID" ASC) ) GO ALTER TABLE "pears"."TrengoSent" ADD FOREIGN KEY "Trengo" ("TrengoID" ASC) REFERENCES "pears"."Trengo" ("TrengoID") ON DELETE CASCADE GO ALTER TABLE "pears"."TrengoSent" ADD FOREIGN KEY "Staff" ("WhoSent" ASC) REFERENCES "pears"."staff" ("staffid") ON DELETE SET NULL GO ALTER TABLE "pears"."TrengoSent" ADD FOREIGN KEY "Person" ("Personid" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE SET NULL GO