use serde::Serialize;

#[derive(Serialize)]
pub struct NavLogEntry {
    pub ts: String,
    pub lang: String,
    pub page: String,
    pub nav_type: NavType,
    /// Authenticated user UUID. `null` for anonymous visits.
    pub user_id: Option<String>,
}

#[derive(Serialize)]
#[serde(rename_all = "snake_case")]
pub enum NavType {
    Initial,
    Spa,
}
