mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-21 07:42:48 +12:00
17 lines
420 B
Elixir
17 lines
420 B
Elixir
defmodule AshPhoenix.Test.PostLink do
|
|
@moduledoc false
|
|
use Ash.Resource, data_layer: Ash.DataLayer.Ets
|
|
|
|
ets do
|
|
private?(true)
|
|
end
|
|
|
|
actions do
|
|
defaults([:create, :update, :destroy])
|
|
end
|
|
|
|
relationships do
|
|
belongs_to(:source_post, AshPhoenix.Test.Post, primary_key?: true, allow_nil?: false)
|
|
belongs_to(:destination_post, AshPhoenix.Test.Post, primary_key?: true, allow_nil?: false)
|
|
end
|
|
end
|