subreddit_emojis table
The subreddit_emojis table in the Reddit Clone Database Schema schema has 7 columns, keyed by id, with 2 foreign keys to subreddits and users.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| subreddit_id | uuid | not null, references subreddits.id | |
| name | varchar(40) | not null | |
| image_url | varchar(500) | not null | |
| is_mod_only | boolean | not null | |
| created_by | uuid | references users.id | |
| created_at | timestamptz | not null |
Indexes (1)
(subreddit_id, name)unique
Relationships
subreddit_emojis.subreddit_idreferencessubreddits.idsubreddit_emojis.created_byreferencesusers.id