saved_searches table

The saved_searches table in the Reddit Clone Database Schema schema has 8 columns, keyed by id, with 2 foreign keys to users and subreddits.

Columns (8)

Columns of the saved_searches table
ColumnTypeConstraintsDescription
iduuidprimary key
user_iduuidnot null, references users.id
namevarchar(100)not null
queryvarchar(500)not null
scopesearch_scopenot null
subreddit_iduuidreferences subreddits.id
notifybooleannot null
created_attimestamptznot null

Indexes (1)

  • (user_id, created_at)

Relationships