aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/websub/websub_server_subscription.ex
blob: d0ef548dac12c00ecccc28176b0db437053a0e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Pleroma: A lightweight social networking server
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Websub.WebsubServerSubscription do
  use Ecto.Schema

  schema "websub_server_subscriptions" do
    field(:topic, :string)
    field(:callback, :string)
    field(:secret, :string)
    field(:valid_until, :naive_datetime)
    field(:state, :string)

    timestamps()
  end
end