mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 21:43:12 +12:00
19 lines
353 B
Elixir
19 lines
353 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
|
|
defaults([:create, :read, :update, :destroy])
|
|
end
|
|
|
|
attributes do
|
|
integer_primary_key(:id)
|
|
attribute(:title, :string)
|
|
end
|
|
end
|