feat: backoffice 사이트 트래픽 통계(방문·봇 크롤링) 추가

This commit is contained in:
skkim committed 2026-10-20 13:51:33 +09:00
1 parent 3854aef320
commit 01dd8e7522
33 files changed
+2253 -57

No files matched your search

+5
View File
@@ -88,6 +88,7 @@ async def create_db_tables():
from app.p2v.models import PlayreelTask, PosterAliveTask # noqa: F401
from app.backoffice.admin.models import Admin # noqa: F401
from app.credit.models import CreditChargeRequest, CreditTransaction # noqa: F401
from app.traffic.models import SiteLogCursor, SitePageView, SiteRequest # noqa: F401
from app.ssulbox.models import ( # noqa: F401
SsulContent,
)
@@ -115,6 +116,10 @@ async def create_db_tables():
CreditTransaction.__table__,
# 썰박스 (FK 순서: ssul_content 를 나머지가 참조)
SsulContent.__table__,
# 사이트 트래픽 통계 (site_log_cursor 의 id=1 행은 수집기가 없으면 만든다)
SitePageView.__table__,
SiteRequest.__table__,
SiteLogCursor.__table__,
]
logger.info("Creating database tables...")