websub_client_subscription.ex 392 Bytes
Newer Older
1
2
defmodule Pleroma.Web.Websub.WebsubClientSubscription do
  use Ecto.Schema
3
  alias Pleroma.User
4
5
6
7
8
9
10

  schema "websub_client_subscriptions" do
    field :topic, :string
    field :secret, :string
    field :valid_until, :naive_datetime
    field :state, :string
    field :subscribers, {:array, :string}, default: []
11
12
    field :hub, :string
    belongs_to :user, User
13
14
15
16

    timestamps()
  end
end