Update the domain name from Books to Metadata.

dev
KKlochko 6 months ago
parent 628f0a2dc8
commit 7fc50ca8d5

@ -53,7 +53,7 @@ config :spark,
config :decentralised_book_index, config :decentralised_book_index,
ecto_repos: [DecentralisedBookIndex.Repo], ecto_repos: [DecentralisedBookIndex.Repo],
generators: [timestamp_type: :utc_datetime], generators: [timestamp_type: :utc_datetime],
ash_domains: [DecentralisedBookIndex.Books, DecentralisedBookIndex.Accounts] ash_domains: [DecentralisedBookIndex.Metadata, DecentralisedBookIndex.Accounts]
# Configures the endpoint # Configures the endpoint
config :decentralised_book_index, DecentralisedBookIndexWeb.Endpoint, config :decentralised_book_index, DecentralisedBookIndexWeb.Endpoint,

@ -1,8 +0,0 @@
defmodule DecentralisedBookIndex.Books do
use Ash.Domain,
otp_app: :decentralised_book_index
resources do
resource DecentralisedBookIndex.Books.Book
end
end

@ -0,0 +1,8 @@
defmodule DecentralisedBookIndex.Metadata do
use Ash.Domain,
otp_app: :decentralised_book_index
resources do
resource DecentralisedBookIndex.Metadata.Book
end
end

@ -1,7 +1,7 @@
defmodule DecentralisedBookIndex.Books.Book do defmodule DecentralisedBookIndex.Metadata.Book do
use Ash.Resource, use Ash.Resource,
otp_app: :decentralised_book_index, otp_app: :decentralised_book_index,
domain: DecentralisedBookIndex.Books, domain: DecentralisedBookIndex.Metadata,
data_layer: AshPostgres.DataLayer data_layer: AshPostgres.DataLayer
postgres do postgres do
Loading…
Cancel
Save