ash_postgres/test/support/resources/integer_post.ex
regularfellow 2807b191fc
chore: Test creating resource with uuid or integer primary key (#48)
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2021-03-29 11:03:45 -04:00

20 lines
339 B
Elixir

defmodule AshPostgres.Test.IntegerPost do
@moduledoc false
use Ash.Resource,
data_layer: AshPostgres.DataLayer
postgres do
table "integer_posts"
repo AshPostgres.TestRepo
end
actions do
read(:read)
create(:create)
end
attributes do
integer_primary_key(:id)
attribute(:title, :string)
end
end