chat_reactions table
The chat_reactions table in the Reddit Clone Database Schema schema has 4 columns, with 2 foreign keys to chat_messages and users.
Columns (4)
| Column | Type | Constraints | Description |
|---|---|---|---|
| message_id | uuid | not null, references chat_messages.id | |
| user_id | uuid | not null, references users.id | |
| emoji | varchar(40) | not null | |
| created_at | timestamptz | not null |
Relationships
chat_reactions.message_idreferenceschat_messages.idchat_reactions.user_idreferencesusers.id