subreddit_styles table
The subreddit_styles table in the Reddit Clone Database Schema schema has 7 columns, keyed by subreddit_id, with 1 foreign key to users. 1 column in subreddits references it.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| subreddit_id | uuid | primary key | |
| custom_css | text | ||
| mobile_theme_json | text | ||
| banner_height | smallint | ||
| menu_position | varchar(20) | ||
| updated_by | uuid | references users.id | |
| updated_at | timestamptz | not null |
Relationships
subreddit_styles.updated_byreferencesusers.idsubreddits.idreferencessubreddit_styles