Spaces:
Running on T4
Running on T4
File size: 473 Bytes
2756f0f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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
|