mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
22 lines
400 B
Elixir
22 lines
400 B
Elixir
defmodule Ash.Policy.Test.Simple.CarUser 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
|
|
belongs_to(:user, Ash.Policy.Test.Simple.User)
|
|
belongs_to(:car, Ash.Policy.Test.Simple.Car)
|
|
end
|
|
end
|