pears.CollectionChatRead

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Column Type Null Default Comment
CollectionID char(20) NOT NULL
Staffid char(20) NOT NULL
ChatReadDateTime timestamp NULL
ChatMessage long varchar NULL
  • CollectionID, Staffid
Constraint Columns References Delete/update action
Collection CollectionID pears.Collection (CollectionID) NOT NULL; ON DELETE CASCADE
Staff Staffid pears.staff (staffid) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."CollectionChatRead"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."CollectionChatRead" (
    "CollectionID"                   CHAR(20) NOT NULL
   ,"Staffid"                        CHAR(20) NOT NULL
   ,"ChatReadDateTime"               TIMESTAMP NULL
   ,"ChatMessage"                    long VARCHAR NULL
   ,PRIMARY KEY ("CollectionID" ASC,"Staffid" ASC) 
)
GO
 
 
ALTER TABLE "pears"."CollectionChatRead"
    ADD NOT NULL FOREIGN KEY "Collection" ("CollectionID" ASC)
    REFERENCES "pears"."Collection" ("CollectionID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."CollectionChatRead"
    ADD NOT NULL FOREIGN KEY "Staff" ("Staffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
  • database/tables/pears_collectionchatread.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1