|
|
|
@ -3,10 +3,15 @@ defmodule DecentralisedBookIndex.Metadata.DBIServer do
|
|
|
|
|
otp_app: :decentralised_book_index,
|
|
|
|
|
domain: DecentralisedBookIndex.Metadata,
|
|
|
|
|
data_layer: AshPostgres.DataLayer,
|
|
|
|
|
authorizers: [Ash.Policy.Authorizer]
|
|
|
|
|
authorizers: [Ash.Policy.Authorizer],
|
|
|
|
|
extensions: [AshJsonApi.Resource]
|
|
|
|
|
|
|
|
|
|
alias DecentralisedBookIndex.Metadata
|
|
|
|
|
|
|
|
|
|
json_api do
|
|
|
|
|
type "dbi_server"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
postgres do
|
|
|
|
|
table "dbi_servers"
|
|
|
|
|
repo DecentralisedBookIndex.Repo
|
|
|
|
|