ash/test/support/policy_rbac/resources/organization.ex
2022-07-21 10:19:47 -04:00

23 lines
429 B
Elixir

defmodule Ash.Test.Support.PolicyRbac.Organization do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
actions do
defaults [:create, :read, :update, :destroy]
end
attributes do
uuid_primary_key(:id)
end
relationships do
has_many :memberships, Ash.Test.Support.PolicyRbac.Membership do
destination_field(:organization_id)
end
end
end