profiles table
The profiles table in the Social Media Database Schema schema has 9 columns, keyed by user_id. 1 column in users references it.
One-to-one with users. Split out because it is read on every profile view and written far more often than credentials.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| user_id | uuid | primary key | |
| display_name | varchar(80) | ||
| bio | varchar(500) | ||
| avatar_url | varchar(500) | ||
| banner_url | varchar(500) | ||
| location | varchar(120) | ||
| website | varchar(255) | ||
| birth_date | date | ||
| updated_at | timestamptz | not null |
Relationships
users.idreferencesprofiles