password_resets table

The password_resets table in the Reddit Clone Database Schema schema has 7 columns, keyed by id, with 1 foreign key to users.

Columns (7)

Columns of the password_resets table
ColumnTypeConstraintsDescription
iduuidprimary key
user_iduuidnot null, references users.id
token_hashvarchar(255)unique, not null
requested_ipvarchar(45)
created_attimestamptznot null
expires_attimestamptznot null
used_attimestamptz

Indexes (1)

  • (user_id, created_at)

Relationships

  • password_resets.user_id references users.id