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 |
| CollectionChatID | char(20) | NOT NULL | | |
| CollectionID | char(20) | NOT NULL | | |
| Staffid | char(20) | NOT NULL | | |
| ChatDate | timestamp | NULL | | |
| ChatMessage | long varchar | NULL | | |
| Name | Type | Columns | Detail |
| CollectionChatDate | Index | CollectionID, ChatDate | |
-- 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