mix phx.gen.auth Accounts User users

This commit is contained in:
2025-12-30 12:26:46 +00:00
parent 4f2ed90044
commit 9b73fcdf7a
28 changed files with 3276 additions and 0 deletions

View File

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