Spaces:
Running on T4
Running on T4
Download backend/app/modules/devices/schemas.py from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/devices/schemas.py
- Command line
-
hf download hf://spaces/modventures/baseball-engine/backend/app/modules/devices/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/backend/app/modules/devices/schemas.py
473 Bytes
| from datetime import datetime | |
| from typing import Literal | |
| from uuid import UUID | |
| from pydantic import Field | |
| from app.common.schemas import RequestModel, ResponseModel | |
| class DeviceCreate(RequestModel): | |
| platform: Literal["ios", "android"] | |
| push_token: str = Field(min_length=1, max_length=4096) | |
| class DeviceOut(ResponseModel): | |
| id: UUID | |
| platform: str | |
| push_token: str | |
| created_at: datetime | |
| class DeviceResponse(ResponseModel): | |
| device: DeviceOut | |