feat(ash): member and properties

This commit is contained in:
Moritz 2025-04-28 17:56:58 +02:00
parent a194a3494f
commit 505f5535ea
Signed by: moritz
GPG key ID: 1020A035E5DD0824
10 changed files with 455 additions and 1 deletions

View file

@ -0,0 +1,27 @@
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
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