analytics / lib /plausible /clickhouse_location_data.ex
Leon4gr45's picture
Upload folder using huggingface_hub
3e21b19 verified
Raw
History Blame Contribute Delete
461 Bytes
defmodule Plausible.ClickhouseLocationData do
@moduledoc """
Schema for storing location id <-> translation mappings in ClickHouse
Indirectly read via dictionary `location_data_dictionary` in ALIAS columns in
`events_v2`, `sessions_v2` and `imported_locations` table.
"""
use Ecto.Schema
@primary_key false
schema "location_data" do
field :type, Ch, type: "LowCardinality(String)"
field :id, :string
field :name, :string
end
end