fix: default value for hits in mirror model
This commit is contained in:
parent
6688beeaad
commit
ab1a019972
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from sqlalchemy.orm import Mapped
|
from sqlalchemy.orm import Mapped, mapped_column
|
||||||
|
|
||||||
from src.models import CustomBase, IdMixin
|
from src.models import CustomBase, IdMixin
|
||||||
|
|
||||||
|
|
@ -14,4 +14,4 @@ class Mirror(CustomBase, IdMixin):
|
||||||
first_seen: Mapped[datetime]
|
first_seen: Mapped[datetime]
|
||||||
last_seen: Mapped[datetime]
|
last_seen: Mapped[datetime]
|
||||||
# TODO: Record hits when a redirect goes to the mirror
|
# TODO: Record hits when a redirect goes to the mirror
|
||||||
hits: Mapped[int] = 0
|
hits: Mapped[int] = mapped_column(default=0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue