Basic user model and login authentication :]
This commit is contained in:
parent
a87ed0b0f3
commit
859d2e7a98
8 changed files with 315 additions and 4 deletions
13
app/models/user.py
Normal file
13
app/models/user.py
Normal 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
|
||||
Loading…
Reference in a new issue