mirror of
https://github.com/ash-project/ash_sqlite.git
synced 2024-09-20 13:23:25 +12:00
19 lines
400 B
Elixir
19 lines
400 B
Elixir
defmodule AshSqlite.Test.Bio do
|
|
@moduledoc false
|
|
use Ash.Resource, data_layer: :embedded
|
|
|
|
actions do
|
|
defaults([:create, :read, :update, :destroy])
|
|
end
|
|
|
|
attributes do
|
|
attribute(:title, :string)
|
|
attribute(:bio, :string)
|
|
attribute(:years_of_experience, :integer)
|
|
|
|
attribute :list_of_strings, {:array, :string} do
|
|
allow_nil?(true)
|
|
default(nil)
|
|
end
|
|
end
|
|
end
|