change structure to make package build

This commit is contained in:
2026-04-15 10:04:23 +02:00
parent e3eea84b2b
commit 1434d6f541
8 changed files with 15 additions and 8 deletions

14
app/model/user.py Normal file
View 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