aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/websub/websub_client_subscription.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/websub/websub_client_subscription.ex')
-rw-r--r--lib/pleroma/web/websub/websub_client_subscription.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/pleroma/web/websub/websub_client_subscription.ex b/lib/pleroma/web/websub/websub_client_subscription.ex
new file mode 100644
index 000000000..c7a25ea22
--- /dev/null
+++ b/lib/pleroma/web/websub/websub_client_subscription.ex
@@ -0,0 +1,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