Add the datalayer and a migration for books.
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
defmodule DecentralisedBookIndex.Books.Book do
|
||||
use Ash.Resource,
|
||||
otp_app: :decentralised_book_index,
|
||||
domain: DecentralisedBookIndex.Books
|
||||
domain: DecentralisedBookIndex.Books,
|
||||
data_layer: AshPostgres.DataLayer
|
||||
|
||||
postgres do
|
||||
table "books"
|
||||
repo DecentralisedBookIndex.Repo
|
||||
end
|
||||
|
||||
actions do
|
||||
defaults [:read]
|
||||
|
||||
Reference in New Issue
Block a user