mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
37cc01957d
* WIP * chore: fix mix.lock merge issues * improvement: upgrade to 3.0 * chore: remove `repo.to_tenant` * chore: continue removal of unnecessary helper * chore: use `Ash.ToTenant`
22 lines
491 B
Elixir
22 lines
491 B
Elixir
defmodule AshPostgres.Test.Bio do
|
|
@moduledoc false
|
|
use Ash.Resource, data_layer: :embedded
|
|
|
|
actions do
|
|
default_accept(:*)
|
|
|
|
defaults([:create, :read, :update, :destroy])
|
|
end
|
|
|
|
attributes do
|
|
attribute(:title, :string, public?: true)
|
|
attribute(:bio, :string, public?: true)
|
|
attribute(:years_of_experience, :integer, public?: true)
|
|
|
|
attribute :list_of_strings, {:array, :string} do
|
|
public?(true)
|
|
allow_nil?(true)
|
|
default(nil)
|
|
end
|
|
end
|
|
end
|