Source code for app.model.orm.page_visit
from datetime import datetime
from urllib.parse import parse_qs
import sqlalchemy as sql
from sqlalchemy.orm import (
Mapped,
mapped_column,
)
from sqlalchemy_utc.sqltypes import UtcDateTime
from app.model.orm.orm_base import OrmBase
[docs]
class PageVisit(OrmBase):
"""
A record of a single visit of a page in the app, intended to be aggregated
into counts and deleted on a regular basis.
"""
@property