
Features: - User authentication with JWT tokens - Task and project CRUD operations - Task filtering and organization generated with BackendIM... (backend.im)
26 lines
380 B
Python
26 lines
380 B
Python
from pydantic import BaseModel, EmailStr
|
|
from typing import Optional, List
|
|
|
|
|
|
class UserBase(BaseModel):
|
|
username: str
|
|
email: EmailStr
|
|
|
|
|
|
class UserCreate(UserBase):
|
|
password: str
|
|
|
|
|
|
class User(UserBase):
|
|
id: int
|
|
is_active: bool
|
|
|
|
class Config:
|
|
orm_mode = True
|
|
|
|
|
|
class UserInDB(User):
|
|
hashed_password: str
|
|
|
|
class Config:
|
|
orm_mode = True |