change structure to make package build
This commit is contained in:
14
app/model/user.py
Normal file
14
app/model/user.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
class UserBase(BaseModel):
|
||||
name: str
|
||||
email: str | None
|
||||
is_admin: bool
|
||||
|
||||
class UserCreate(UserBase):
|
||||
password: str
|
||||
|
||||
class User(UserBase):
|
||||
id: int
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user