16 lines
610 B
Python
16 lines
610 B
Python
"""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)
|