pears.ChatInvite

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

Links to chatmessage

Column Type Null Default Comment
ChatID char(20) NOT NULL
WhoID char(20) NOT NULL
ChatDate timestamp NULL
LastResponse timestamp NULL
  • ChatID, WhoID
Constraint Columns References Delete/update action
Chat ChatID pears.Chat (ChatID) 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"."ChatInvite"
-- Table comment: Links to chatmessage
-- Statement count: 3
 
CREATE TABLE "pears"."ChatInvite" (
    "ChatID"                         CHAR(20) NOT NULL
   ,"WhoID"                          CHAR(20) NOT NULL
   ,"ChatDate"                       TIMESTAMP NULL
   ,"LastResponse"                   TIMESTAMP NULL
   ,PRIMARY KEY ("ChatID" ASC,"WhoID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."ChatInvite" IS 
	'Links to chatmessage'
GO
 
 
ALTER TABLE "pears"."ChatInvite"
    ADD NOT NULL FOREIGN KEY "Chat" ("ChatID" ASC)
    REFERENCES "pears"."Chat" ("ChatID")
    ON DELETE CASCADE
GO
  • database/tables/pears_chatinvite.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1