2024-01-10 05:21:09 +13:00
|
|
|
defmodule AshPostgres.Test.TempEntity do
|
|
|
|
@moduledoc false
|
|
|
|
|
|
|
|
use Ash.Resource,
|
2024-03-28 09:52:28 +13:00
|
|
|
domain: AshPostgres.Test.Domain,
|
2024-01-10 05:21:09 +13:00
|
|
|
data_layer: AshPostgres.DataLayer
|
|
|
|
|
|
|
|
attributes do
|
2024-01-11 02:34:23 +13:00
|
|
|
uuid_primary_key(:id)
|
2024-01-10 05:21:09 +13:00
|
|
|
|
2024-03-28 09:52:28 +13:00
|
|
|
attribute(:full_name, :string, allow_nil?: false, public?: true)
|
2024-01-10 05:21:09 +13:00
|
|
|
|
2024-03-28 09:52:28 +13:00
|
|
|
timestamps(public?: true)
|
2024-01-10 05:21:09 +13:00
|
|
|
end
|
|
|
|
|
|
|
|
postgres do
|
|
|
|
table "temp_entities"
|
|
|
|
schema "temp"
|
|
|
|
repo AshPostgres.TestRepo
|
|
|
|
end
|
|
|
|
|
|
|
|
actions do
|
2024-03-28 09:52:28 +13:00
|
|
|
default_accept(:*)
|
|
|
|
|
2024-01-11 02:34:23 +13:00
|
|
|
defaults([:create, :read])
|
2024-01-10 05:21:09 +13:00
|
|
|
end
|
|
|
|
end
|