mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 21:43:12 +12:00
d5d312de56
with custom schemas and tables
24 lines
403 B
Elixir
24 lines
403 B
Elixir
defmodule AshPostgres.Test.TempEntity do
|
|
@moduledoc false
|
|
|
|
use Ash.Resource,
|
|
data_layer: AshPostgres.DataLayer
|
|
|
|
attributes do
|
|
uuid_primary_key :id
|
|
|
|
attribute :full_name, :string, allow_nil?: false
|
|
|
|
timestamps(private?: false)
|
|
end
|
|
|
|
postgres do
|
|
table "temp_entities"
|
|
schema "temp"
|
|
repo AshPostgres.TestRepo
|
|
end
|
|
|
|
actions do
|
|
defaults [:create, :read]
|
|
end
|
|
end
|