ash_postgres/test/support/resources/temp_entity.ex

25 lines
406 B
Elixir
Raw Normal View History

defmodule AshPostgres.Test.TempEntity do
@moduledoc false
use Ash.Resource,
data_layer: AshPostgres.DataLayer
attributes do
2024-01-11 02:34:23 +13:00
uuid_primary_key(:id)
2024-01-11 02:34:23 +13:00
attribute(:full_name, :string, allow_nil?: false)
timestamps(private?: false)
end
postgres do
table "temp_entities"
schema "temp"
repo AshPostgres.TestRepo
end
actions do
2024-01-11 02:34:23 +13:00
defaults([:create, :read])
end
end