Download app/schemas/department.py from Noor2623/Smart-Query-Routing-Email-Automation-System: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/resolve/main/app/schemas/department.py
- Command line
-
hf download hf://spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/app/schemas/department.py
-
curl -L -o department.py https://huggingface.co/spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/resolve/main/app/schemas/department.py
366 Bytes
| from pydantic import BaseModel, ConfigDict | |
| class DepartmentCreate(BaseModel): | |
| name: str | |
| code: str | |
| description: str | None = None | |
| keywords: str | None = None | |
| user_id: int | None = None | |
| query: str | None = None | |
| class DepartmentResponse(DepartmentCreate): | |
| id: int | |
| is_active: bool | |
| model_config = ConfigDict(from_attributes=True) | |