Skip to content

Commit 0922275

Browse files
committed
Add Paths sqlmodel
1 parent 3c01e8e commit 0922275

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

github_stats_pages/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from .clone import Clone # noqa: F401
22
from .referring import Referring # noqa: F401
3+
from .paths import Paths # noqa: F401
34
from .traffic import Traffic # noqa: F401

github_stats_pages/models/paths.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from typing import Optional
2+
3+
from sqlmodel import SQLModel, Field
4+
5+
6+
class Paths(SQLModel, table=True):
7+
id: Optional[int] = Field(default=None, primary_key=True)
8+
date: str
9+
path: str
10+
title: str
11+
views: int
12+
unique_views: int

0 commit comments

Comments
 (0)