subreddit_topics table
The subreddit_topics table in the Reddit Clone Database Schema schema has 3 columns, with 2 foreign keys to subreddits and topics.
Columns (3)
| Column | Type | Constraints | Description |
|---|---|---|---|
| subreddit_id | uuid | not null, references subreddits.id | |
| topic_id | uuid | not null, references topics.id | |
| is_primary | boolean | not null |
Indexes (1)
(topic_id)
Relationships
subreddit_topics.subreddit_idreferencessubreddits.idsubreddit_topics.topic_idreferencestopics.id