Basic user model and login authentication :]

This commit is contained in:
Hannah dagemark 2026-08-10 00:51:18 +02:00
commit 859d2e7a98
8 changed files with 315 additions and 4 deletions

13
app/models/user.py Normal file
View file

@ -0,0 +1,13 @@
from sqlmodel import Field, SQLModel
class User(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
username: str
authority: int
class UserInDB(User):
hashed_password: str