websub_client_subscription.ex 399 Bytes
Newer Older
1
2
defmodule Pleroma.Web.Websub.WebsubClientSubscription do
  use Ecto.Schema
3
  alias Pleroma.User
4
5

  schema "websub_client_subscriptions" do
lain's avatar
lain committed
6
7
8
9
10
11
12
    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)
13
14
15
16

    timestamps()
  end
end