User Profiles
Guide to BrewHoard user profiles - editing your profile, collection stats, and account settings.
User profiles in BrewHoard allow collectors to view and manage their beer journey. This guide covers profile editing and the collection statistics displayed on your profile.
Overview
| Feature | Description |
|---|---|
| Profile Editing | Update name, bio, location, and country |
| Collection Stats | View total beers, unique styles, top breweries |
| Language Selection | Choose your UI language |
| Account Management | Logout and account deletion |
Editing Your Profile
Users can edit their profile directly from the /profile page by clicking the Edit button.
Available Fields
| Field | Type | Description |
|---|---|---|
| First Name | Text | Your first name |
| Last Name | Text | Your last name |
| Location | Text | City, Country |
| Country | Select | Auto-detects from browser |
| Preferred Currency | Select | EUR, USD, GBP, CAD, AUD |
| Bio | Textarea | Tell us about yourself |
Country & Currency
When you select a country, the preferred currency is automatically suggested:
- 🇪🇪 Estonia → EUR
- 🇺🇸 United States → USD
- 🇬🇧 United Kingdom → GBP
- 🇨🇦 Canada → CAD
- 🇦🇺 Australia → AUD
Collection Statistics
The profile page displays collection statistics when you have beers in your collection:
| Stat | Description |
|---|---|
| Total Beers | Total number of items in your collection |
| Unique Styles | Number of distinct beer styles |
| Unique Breweries | Number of distinct breweries |
Top Breweries & Styles
The profile also shows your top breweries and styles based on the number of beers from each.
Profile Page Actions
Language Selection
Choose your interface language directly from the profile page. Supported languages:
- English
- Nederlands (Dutch)
- Français (French)
- Español (Spanish)
- Português (Portuguese)
Navigation Links
The profile page provides quick links to:
- Analytics (
/collection/analytics) - Collection insights - Alerts (
/settings/alerts) - Notification preferences - Integrations (
/settings/integrations) - Untappd and more - Settings (
/settings) - App settings - Docs (
/docs) - Documentation
Account Deletion
Users can permanently delete their account from the Danger Zone section. See Settings & Preferences for details.
Database Schema
The user profile data is stored in the user table managed by Better Auth. Key profile fields:
| Column | Type | Description |
|---|---|---|
username | TEXT | Unique username |
name | TEXT | Display name |
email | TEXT | Email address |
image | TEXT | Avatar URL |
bio | TEXT | Profile bio |
location | TEXT | User’s location |
discoverable | BOOLEAN | Appear in discovery |
Note: The user table is managed by Better Auth (
src/lib/db/auth-schema.ts). Profile updates go throughupdateUser()insrc/lib/auth/users.js.
Next Steps
- Settings & Preferences - Notification and PWA settings
- Collection Guide - Managing your beer collection
- Authentication - Auth system architecture