2023-10-10 22:39:23 +02:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
2023-10-11 23:45:12 +02:00
|
|
|
class User(BaseModel):
|
|
|
|
id: int
|
2023-10-10 22:39:23 +02:00
|
|
|
username: str
|
2023-10-11 23:45:12 +02:00
|
|
|
password: str
|
2023-10-12 00:04:18 +02:00
|
|
|
roles: str
|
2023-10-10 22:39:23 +02:00
|
|
|
|
2023-10-11 23:45:12 +02:00
|
|
|
class UserInDB(User):
|
|
|
|
password: str
|