Download app/schemas/query.py from Noor2623/Smart-Query-Routing-Email-Automation-System: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/resolve/main/app/schemas/query.py
- Command line
-
hf download hf://spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/app/schemas/query.py
-
curl -L -o query.py https://huggingface.co/spaces/Noor2623/Smart-Query-Routing-Email-Automation-System/resolve/main/app/schemas/query.py
559 Bytes
| from datetime import datetime | |
| from pydantic import BaseModel, ConfigDict, Field | |
| class QueryCreate(BaseModel): | |
| message: str = Field(min_length=1, max_length=5000) | |
| class QueryRead(BaseModel): | |
| id: int | |
| student_id: int | |
| sender_email: str | |
| message: str | |
| subject: str | |
| snippet: str | |
| department_id: int | None | |
| department_name: str | None | |
| status: str | |
| priority: str | |
| confidence: float | |
| created_at: datetime | |
| updated_at: datetime | |
| responded_at: datetime | None | |
| model_config = ConfigDict(from_attributes=True) | |