26 lines
515 B
Elixir
26 lines
515 B
Elixir
defmodule Podbox.Podcast.AssetFeed do
|
|
@moduledoc """
|
|
Join table between podcast feeds and downloaded assets.
|
|
"""
|
|
|
|
use Ash.Resource,
|
|
data_layer: AshSqlite.DataLayer,
|
|
domain: Podbox.Podcast,
|
|
notifiers: [Ash.Notifier.PubSub]
|
|
|
|
@type t :: Ash.Resource.record()
|
|
|
|
attributes do
|
|
uuid_primary_key :id
|
|
end
|
|
|
|
relationships do
|
|
belongs_to :asset, Podbox.Download.Asset
|
|
belongs_to :feed, Podbox.Podcast.Feed
|
|
end
|
|
|
|
sqlite do
|
|
table "podcast_asset_feeds"
|
|
repo Podbox.Repo
|
|
end
|
|
end
|