Packages
Potionx project generator. Provides a `mix potionx.new` task to bootstrap a new Elixir application with Phoenix, Absinthe, Pow and Vue dependencies.
Current section
Files
Jump to
Current section
Files
templates/potionx/migrations/create_users.exs
defmodule <%= @graphql_namespace %>.Repo.Migrations.CreateUsers do
use Ecto.Migration
def change do
create table(:users) do
add :email, :string, null: false
add :deleted_at, :utc_datetime
add :name, :string
add :surname, :string
add :roles, {:array, :string}
timestamps()
end
create unique_index(:users, [:email])
end
end