giants-maps-api/app/schemas.py

20 lines
293 B
Python
Raw Normal View History

2021-12-22 15:56:35 +01:00
import datetime
from pydantic import BaseModel
class MapOut(BaseModel):
crc: int
crc_human: str
name: str
size: int
upload_date: datetime.datetime
blob_location: str
class Config:
orm_mode = True
class MapIn(BaseModel):
name: str
b64_data: str