mitgliederverwaltung/lib/membership/membership.ex
Moritz 156cdb24d0
Some checks failed
continuous-integration/drone/push Build is failing
WIP: validate required fields
2025-06-02 22:41:04 +02:00

27 lines
849 B
Elixir

defmodule Mv.Membership do
use Ash.Domain,
extensions: [AshPhoenix]
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_property
define :list_property, action: :read
define :update_property, action: :update_property
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