Setting up the configuration files and refactoring

This commit is contained in:
2026-03-03 17:07:20 +02:00
parent 7eede1f99b
commit ba02095f32
9 changed files with 36 additions and 24 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ from sqlalchemy import String, Integer, DateTime, func, Index
from sqlalchemy.orm import Mapped, mapped_column
from datetime import datetime
from app.db.base import Base
from typing import Optional
class URL(Base):
__tablename__ = "urls"
@@ -40,7 +40,7 @@ class URL(Base):
nullable=False
)
last_accessed: Mapped[datetime | None] = mapped_column(
last_accessed: Mapped[Optional[datetime]] = mapped_column(
DateTime(timezone=True),
nullable=True
)