Added migrations, each creating a new database table
This commit is contained in:
22
priv/repo/migrations/20250724223301_create_users.exs
Normal file
22
priv/repo/migrations/20250724223301_create_users.exs
Normal 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
|
Reference in New Issue
Block a user