websub_client_subscription.ex 320 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
defmodule Pleroma.Web.Websub.WebsubClientSubscription do
  use Ecto.Schema

  schema "websub_client_subscriptions" do
    field :topic, :string
    field :secret, :string
    field :valid_until, :naive_datetime
    field :state, :string
    field :subscribers, {:array, :string}, default: []

    timestamps()
  end
end