Run alembic migrations on startup, fix User model, add POI travel sorting and streaming options
This commit is contained in:
parent
743e018668
commit
54bdcac14a
5 changed files with 34 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue