- 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
11 lines
246 B
Elixir
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
|