ash_postgres/test/support/resources/integer_post.ex

23 lines
429 B
Elixir
Raw Normal View History

defmodule AshPostgres.Test.IntegerPost do
@moduledoc false
use Ash.Resource,
domain: AshPostgres.Test.Domain,
data_layer: AshPostgres.DataLayer
postgres do
table "integer_posts"
repo AshPostgres.TestRepo
end
actions do
default_accept(:*)
2022-04-20 03:08:28 +12:00
defaults([:create, :read, :update, :destroy])
end
attributes do
integer_primary_key(:id)
attribute(:title, :string, public?: true)
end
end