1. User
usersStores user profile information and account preferences.
| Field | Type | Description |
|---|---|---|
| id | String | Primary key (UUID) |
| name | String? | User display name |
| String | Unique email address | |
| firstName | String? | First name |
| lastName | String? | Last name |
| passwordHash | String? | Hashed password |
| image | String? | Profile image |
| timezone | String | Defaults to UTC |
| createdAt | DateTime | Creation timestamp |
| updatedAt | DateTime | Last update timestamp |
Relationships: Has many habits, categories, completions, daily statistics, reminders, accounts and sessions.