trophies table
The trophies table in the Reddit Clone Database Schema schema has 6 columns, keyed by id. 1 column in user_trophies references it.
The catalog of awardable trophies. Criteria live in application code; this table only names the award and says whether a human grants it.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| code | varchar(40) | unique, not null | |
| name | varchar(80) | not null | |
| description | varchar(255) | ||
| icon_url | varchar(500) | ||
| is_automatic | boolean | not null |
Relationships
user_trophies.trophy_idreferencestrophies