Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.TrengoMessage ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **TrengoMessageID** | char(20) | NOT NULL | | | | Ticket | char(20) | NULL | | | | PersonID | char(20) | NULL | | | | MessageText | long varchar | NULL | | | | Created_At | timestamp | NULL | | | | MessageJson | long varchar | NULL | | | | Messagetype | char(20) | NULL | | | | WhenReceived | timestamp | NULL | | | | ID | char(20) | NULL | | | ===== Primary Key ===== * TrengoMessageID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | ON DELETE SET NULL | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."TrengoMessage" -- Table comment: -- Statement count: 2 CREATE TABLE "pears"."TrengoMessage" ( "TrengoMessageID" char(20) NOT NULL ,"Ticket" char(20) NULL ,"PersonID" char(20) NULL ,"MessageText" long varchar NULL ,"Created_At" timestamp NULL ,"MessageJson" long varchar NULL ,"Messagetype" char(20) NULL ,"WhenReceived" timestamp NULL ,"ID" char(20) NULL ,PRIMARY KEY ("TrengoMessageID" ASC) ) go ALTER TABLE "pears"."TrengoMessage" ADD FOREIGN KEY "Person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE SET NULL go </code> database/tables/pears_trengomessage.txt Last modified: 2026/08/07 19:24by 127.0.0.1