little of backend

This commit is contained in:
2024-03-24 15:37:01 +03:00
parent ef60d563fa
commit 0edcecd0f5
15 changed files with 140 additions and 16 deletions

19
backend/app/db/schemas.py Normal file
View File

@ -0,0 +1,19 @@
from typing import Union
from pydantic import BaseModel
class UserBase(BaseModel):
username: str
email: str
class UserCreate(UserBase):
password: str
class User(UserBase):
id: int
is_active: bool
class Config:
orm_mode = True