mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-20 13:23:30 +12:00
15 lines
275 B
Elixir
15 lines
275 B
Elixir
defmodule AshAdmin.Test.Post do
|
|
@moduledoc false
|
|
use Ash.Resource,
|
|
domain: Demo.Tickets.Domain,
|
|
data_layer: Ash.DataLayer.Ets
|
|
|
|
attributes do
|
|
uuid_primary_key(:id)
|
|
|
|
attribute :body, :string do
|
|
allow_nil?(false)
|
|
public? true
|
|
end
|
|
end
|
|
end
|