mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-24 07:16:18 +00:00
17 lines
392 B
Elixir
17 lines
392 B
Elixir
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
|