After "mix phx.gen.auth Accounts User users".

This commit is contained in:
2026-01-20 14:45:43 +01:00
parent 3c059a9098
commit 9ed6ad898f
28 changed files with 3217 additions and 301 deletions

View File

@ -7,6 +7,19 @@
# General application configuration
import Config
config :beet_round_server, :scopes,
user: [
default: true,
module: BeetRoundServer.Accounts.Scope,
assign_key: :current_scope,
access_path: [:user, :id],
schema_key: :user_id,
schema_type: :binary_id,
schema_table: :users,
test_data_fixture: BeetRoundServer.AccountsFixtures,
test_setup_helper: :register_and_log_in_user
]
config :beet_round_server,
ecto_repos: [BeetRoundServer.Repo],
generators: [timestamp_type: :utc_datetime, binary_id: true]

View File

@ -1,5 +1,8 @@
import Config
# Only in tests, remove the complexity from the password hashing algorithm
config :bcrypt_elixir, :log_rounds, 1
# Configure your database
#
# The MIX_TEST_PARTITION environment variable can be used