update source schema with members contextn behaviour

This commit is contained in:
phyzical 2025-08-08 16:29:46 +08:00
parent 0a5eb3db3c
commit bdf65bb0a0
No known key found for this signature in database
GPG key ID: 91E97494BCA22BCF

View file

@ -40,6 +40,7 @@ defmodule Pinchflat.Sources.Source do
marked_for_deletion_at
min_duration_seconds
max_duration_seconds
members_content_behaviour
)a
# Expensive API calls are made when a source is inserted/updated so
@ -80,6 +81,8 @@ defmodule Pinchflat.Sources.Source do
field :fast_index, :boolean, default: false
field :cookie_behaviour, Ecto.Enum, values: [:disabled, :when_needed, :all_operations], default: :disabled
field :download_media, :boolean, default: true
field :members_content_behaviour, Ecto.Enum, values: ~w(include exclude only)a, default: :include
field :last_indexed_at, :utc_datetime
# Only download media items that were published after this date
field :download_cutoff_date, :date