pears.TrengoSent
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 |
|---|---|---|---|---|
| TrengoSentID | char(20) | NOT NULL | ||
| TrengoID | integer | NULL | ||
| WhoSent | char(20) | NULL | ||
| Personid | char(20) | NULL | ||
| WhenSent | timestamp | NULL |
Primary Key
- TrengoSentID
Foreign Keys
| 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 |
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"."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