|
|
@ -2,10 +2,15 @@ defmodule DecentralisedBookIndex.Metadata.AuthorRole do
|
|
|
|
use Ash.Resource,
|
|
|
|
use Ash.Resource,
|
|
|
|
otp_app: :decentralised_book_index,
|
|
|
|
otp_app: :decentralised_book_index,
|
|
|
|
domain: DecentralisedBookIndex.Metadata,
|
|
|
|
domain: DecentralisedBookIndex.Metadata,
|
|
|
|
data_layer: AshPostgres.DataLayer
|
|
|
|
data_layer: AshPostgres.DataLayer,
|
|
|
|
|
|
|
|
extensions: [AshJsonApi.Resource]
|
|
|
|
|
|
|
|
|
|
|
|
alias DecentralisedBookIndex.Metadata
|
|
|
|
alias DecentralisedBookIndex.Metadata
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
json_api do
|
|
|
|
|
|
|
|
type "author_role"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
postgres do
|
|
|
|
postgres do
|
|
|
|
table "author_role"
|
|
|
|
table "author_role"
|
|
|
|
repo DecentralisedBookIndex.Repo
|
|
|
|
repo DecentralisedBookIndex.Repo
|
|
|
|