towerops/priv/repo/migrations/20260118162909_add_profile_fields_to_users.exs
Graham McIntire f941e13f0d
add user profile settings with name, avatar, and timezone
- Add migration for name, avatar_url, timezone fields
- Update User schema with profile_changeset
- Add Accounts context functions for profile updates
- Reorganize settings page into sections:
  * Personal Information (name, avatar, timezone)
  * Account (email, password)
  * API (tokens)
  * Notifications (mobile devices)
  * Security (passkeys)
- Avatar URL accepts external URLs (Gravatar, etc)
- Timezone selector with common zones
2026-01-18 10:32:23 -06:00

11 lines
246 B
Elixir

defmodule Towerops.Repo.Migrations.AddProfileFieldsToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add :name, :string
add :avatar_url, :string
add :timezone, :string, default: "UTC"
end
end
end