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

This commit is contained in:
2026-04-21 12:38:51 +02:00
parent 7f840bbf0d
commit 0a07cdf5d2
28 changed files with 3285 additions and 0 deletions

View File

@ -7,6 +7,19 @@
# General application configuration
import Config
config :generic_rest_server, :scopes,
user: [
default: true,
module: GenericRestServer.Accounts.Scope,
assign_key: :current_scope,
access_path: [:user, :id],
schema_key: :user_id,
schema_type: :binary_id,
schema_table: :users,
test_data_fixture: GenericRestServer.AccountsFixtures,
test_setup_helper: :register_and_log_in_user
]
config :generic_rest_server,
ecto_repos: [GenericRestServer.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