start project
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""NEW table (Method A, Ch08 follow-up) — not in Chapter 06's original
|
||||
list. Human-only browser/OS breakdown widget (Ch08)."""
|
||||
from __future__ import annotations
|
||||
|
||||
from app.extensions import db
|
||||
|
||||
|
||||
class BrowserStatsDaily(db.Model):
|
||||
__tablename__ = "browser_stats_daily"
|
||||
|
||||
date = db.Column(db.Date, primary_key=True)
|
||||
browser: str = db.Column(db.String(64), primary_key=True)
|
||||
os: str = db.Column(db.String(64), primary_key=True)
|
||||
count: int = db.Column(db.Integer, nullable=False, default=0)
|
||||
Reference in New Issue
Block a user