mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
25 lines
488 B
Elixir
25 lines
488 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_attribute(:organization_id)
|
|
end
|
|
|
|
has_many :files, Ash.Test.Support.PolicyRbac.File
|
|
end
|
|
end
|