ash/test/support/policy_rbac/resources/organization.ex

24 lines
433 B
Elixir
Raw Normal View History

2022-07-22 02:19:47 +12:00
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
2022-07-22 02:19:47 +12:00
has_many :memberships, Ash.Test.Support.PolicyRbac.Membership do
destination_attribute(:organization_id)
end
end
end