diff --git a/apps/configurator/lib/configurator/accounts/user.ex b/apps/configurator/lib/configurator/accounts/user.ex index e9a070cca..69f07c425 100644 --- a/apps/configurator/lib/configurator/accounts/user.ex +++ b/apps/configurator/lib/configurator/accounts/user.ex @@ -3,7 +3,7 @@ defmodule Configurator.Accounts.User do use Configurator.Schema import Ecto.Changeset - schema "users" do + schema "configurator_users" do field :email, :string field :password, :string, virtual: true, redact: true field :hashed_password, :string, redact: true diff --git a/apps/configurator/priv/repo/migrations/20240716203820_create_users_auth_tables.exs b/apps/configurator/priv/repo/migrations/20240716203820_create_users_auth_tables.exs index 473874280..6ff2c1c94 100644 --- a/apps/configurator/priv/repo/migrations/20240716203820_create_users_auth_tables.exs +++ b/apps/configurator/priv/repo/migrations/20240716203820_create_users_auth_tables.exs @@ -4,17 +4,17 @@ defmodule Configurator.Repo.Migrations.CreateUsersAuthTables do def change do execute "CREATE EXTENSION IF NOT EXISTS citext", "" - create table(:users) do + create table(:configurator_users) do add :email, :citext, null: false add :hashed_password, :string, null: false add :confirmed_at, :naive_datetime timestamps(type: :utc_datetime) end - create unique_index(:users, [:email]) + create unique_index(:configurator_users, [:email]) create table(:users_tokens) do - add :user_id, references(:users, on_delete: :delete_all), null: false + add :user_id, references(:configurator_users, on_delete: :delete_all), null: false add :token, :binary, null: false add :context, :string, null: false add :sent_to, :string