chore: add migrations to git

This commit is contained in:
2026-05-12 16:00:46 +02:00
parent 68136d1602
commit 25f411a3df
9 changed files with 109 additions and 1 deletions
@@ -0,0 +1,14 @@
defmodule Localiser.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :username, :string, null: false
add :password_hash, :string, null: false
timestamps(type: :utc_datetime)
end
create unique_index(:users, [:username])
end
end