Initial public release

This commit is contained in:
thakares committed 2026-06-11 20:19:03 +05:30
commit c1107147b4
92 files changed
+10562

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct VisitRecord {
pub id: String,
pub target_type: String, // 'url' or 'page'
pub target_id: String,
pub timestamp: String,
pub ip_address: String,
pub user_agent: String,
pub referer: String,
pub accept_language: String,
pub country: String,
pub status_code: u16,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct SummaryEntry {
pub date: String,
pub target_type: String,
pub target_id: String,
pub metric_type: String,
pub metric_key: String,
pub metric_value: i64,
}