blob: 8cea029393f8caa3d68582407ef1967e24ca6461 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
defmodule Pleroma.Web.Websub.WebsubClientSubscription do
use Ecto.Schema
alias Pleroma.User
schema "websub_client_subscriptions" do
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
|