pears.CollectionChat

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

Column Type Null Default Comment
CollectionChatID char(20) NOT NULL
CollectionID char(20) NOT NULL
Staffid char(20) NOT NULL
ChatDate timestamp NULL
ChatMessage long varchar NULL
  • CollectionChatID
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.
Name Type Columns Detail
CollectionChatDate Index CollectionID, ChatDate
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."CollectionChat"
-- Table comment: 
-- Statement count: 4
 
CREATE TABLE "pears"."CollectionChat" (
    "CollectionChatID"               CHAR(20) NOT NULL
   ,"CollectionID"                   CHAR(20) NOT NULL
   ,"Staffid"                        CHAR(20) NOT NULL
   ,"ChatDate"                       TIMESTAMP NULL
   ,"ChatMessage"                    long VARCHAR NULL
   ,PRIMARY KEY ("CollectionChatID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."CollectionChat"
    ADD NOT NULL FOREIGN KEY "Collection" ("CollectionID" ASC)
    REFERENCES "pears"."Collection" ("CollectionID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."CollectionChat"
    ADD NOT NULL FOREIGN KEY "Staff" ("Staffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
 
 
CREATE INDEX "CollectionChatDate" ON "pears"."CollectionChat"
    ( "CollectionID","ChatDate" )
GO
  • database/tables/pears_collectionchat.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1