Run alembic migrations on startup, fix User model, add POI travel sorting and streaming options

This commit is contained in:
Viktor Barzin 2026-02-08 18:50:13 +00:00
parent 743e018668
commit 54bdcac14a
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 34 additions and 10 deletions

View file

@ -5,7 +5,7 @@ from sqlmodel import SQLModel, Field
class User(SQLModel, table=True):
id: int = Field(primary_key=True)
id: int | None = Field(default=None, primary_key=True)
email: EmailStr = Field(index=True, unique=True)
password: str | None = Field(default=None, nullable=True)
created_at: datetime = Field(default_factory=datetime.utcnow)