Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
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