Added migrations, each creating a new database table

This commit is contained in:
Alex Tavarez
2025-07-25 11:30:28 -04:00
parent 043f85580a
commit 8eeeee3090
4 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
defmodule Sukaato.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :name, :string
add :username, :string
add :password, :string
add :email, :string
add :dob, :date
add :gender_type, :string
add :gender_id, :string
add :bio, :text
add :affil, {:array, :map}
add :perms, {:array, :integer}
add :user_token, :string
add :pub_keys, :map
timestamps(type: :utc_datetime)
end
end
end