Merge branch 'feld-Logger' into 'develop'
[akkoma] / lib / pleroma / web / websub / websub_client_subscription.ex
index 341e27c518b4cae23c147a50978f5192f7462659..c7a25ea227b49fc03909268c77dfb5e8d36dcb21 100644 (file)
@@ -1,5 +1,6 @@
 defmodule Pleroma.Web.Websub.WebsubClientSubscription do
   use Ecto.Schema
+  alias Pleroma.User
 
   schema "websub_client_subscriptions" do
     field :topic, :string
@@ -7,6 +8,8 @@ defmodule Pleroma.Web.Websub.WebsubClientSubscription do
     field :valid_until, :naive_datetime
     field :state, :string
     field :subscribers, {:array, :string}, default: []
+    field :hub, :string
+    belongs_to :user, User
 
     timestamps()
   end