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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| user_id | uuid | not null, references users.id | |
| token_hash | varchar(255) | unique, not null | |
| requested_ip | varchar(45) | ||
| created_at | timestamptz | not null | |
| expires_at | timestamptz | not null | |
| used_at | timestamptz |
Indexes (1)
(user_id, created_at)
Relationships
password_resets.user_idreferencesusers.id