feat(ash): added accounts, user for authentication

This commit is contained in:
carla 2025-05-30 12:20:47 +02:00 committed by carla
parent 80e7041146
commit f154eea055
5 changed files with 160 additions and 1 deletions

13
lib/accounts/accounts.ex Normal file
View file

@ -0,0 +1,13 @@
defmodule Mv.Accounts do
use Ash.Domain,
extensions: [AshPhoenix]
resources do
resource Mv.Accounts.User do
define(:create_user, action: :create)
define(:list_users, action: :read)
define(:update_user, action: :update)
define(:destroy_user, action: :destroy)
end
end
end