Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

406 B
Raw Blame
defmodule Plausible.PendingStatsDeletion do
  @moduledoc """
  Schema for tracking pending deletions from ClickHouse
  """

  use Ecto.Schema

  @reasons [:user_request, :expired_trial, :churned_subscription]

  @type t() :: %__MODULE__{}

  schema "pending_stats_deletions" do
    field :site_id, :integer
    field :reason, Ecto.Enum, values: @reasons, default: :user_request

    timestamps()
  end
end