start project

This commit is contained in:
Hemmat
2026-08-07 21:17:17 +03:30
commit ea1e1eead6
121 changed files with 8108 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
"""NEW table (Method A, Ch09 follow-up) — not in Chapter 06's original
list. request_stats_hourly/_daily aggregate ALL traffic with no is_bot
split, so Ch09's "most-visited-by-humans" comparison had no rollup to
read. Bot hits excluded at rollup-write time (Ch07's is_bot flag)."""
from __future__ import annotations
from app.extensions import db
class HumanPathStatsDaily(db.Model):
__tablename__ = "human_path_stats_daily"
date = db.Column(db.Date, primary_key=True)
path: str = db.Column(db.String(2048), primary_key=True)
count: int = db.Column(db.Integer, nullable=False, default=0)