parent
628f0a2dc8
commit
7fc50ca8d5
@ -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…
Reference in new issue