11 lines
176 B
Python
11 lines
176 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class User(BaseModel):
|
|
id: int
|
|
username: str
|
|
password: str
|
|
permissions: list[str] = []
|
|
|
|
class UserInDB(User):
|
|
password: str |