mitgliederverwaltung/lib/membership/membership.ex
Moritz 5287a20b98
All checks were successful
continuous-integration/drone/push Build is passing
feat: activate ash_admin for Accounts and Membershiop domain
2025-07-24 12:38:21 +02:00

31 lines
881 B
Elixir

defmodule Mv.Membership do
use Ash.Domain,
extensions: [AshAdmin.Domain, AshPhoenix]
admin do
show? true
end
resources do
resource Mv.Membership.Member do
define :create_member, action: :create_member
define :list_members, action: :read
define :update_member, action: :update_member
define :destroy_member, action: :destroy
end
resource Mv.Membership.Property do
define :create_property, action: :create
define :list_property, action: :read
define :update_property, action: :update
define :destroy_property, action: :destroy
end
resource Mv.Membership.PropertyType do
define :create_property_type, action: :create
define :list_property_types, action: :read
define :update_property_type, action: :update
define :destroy_property_type, action: :destroy
end
end
end