akkoma/lib/pleroma/web/websub/websub_client_subscription.ex

17 lines
399 B
Elixir
Raw Normal View History

defmodule Pleroma.Web.Websub.WebsubClientSubscription do
use Ecto.Schema
alias Pleroma.User
schema "websub_client_subscriptions" do
2018-03-30 07:01:53 -06:00
field(:topic, :string)
field(:secret, :string)
field(:valid_until, :naive_datetime)
field(:state, :string)
field(:subscribers, {:array, :string}, default: [])
field(:hub, :string)
belongs_to(:user, User)
timestamps()
end
end