ash_sqlite/test/support/resources/organization.ex

21 lines
425 B
Elixir

defmodule AshSqlite.Test.Organization do
@moduledoc false
use Ash.Resource,
domain: AshSqlite.Test.Domain,
data_layer: AshSqlite.DataLayer
sqlite do
table("orgs")
repo(AshSqlite.TestRepo)
end
actions do
default_accept(:*)
defaults([:create, :read, :update, :destroy])
end
attributes do
uuid_primary_key(:id, writable?: true)
attribute(:name, :string, public?: true)
end
end