giants-maps-api/app/schemas.py
Hipstercat 7b74f1240f
All checks were successful
continuous-integration/drone/push Build is passing
dropped db, works with plain file structure now
Signed-off-by: Hipstercat <tasty@hipstercat.fr>
2021-12-22 23:25:46 +01:00

17 lines
250 B
Python

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 MapIn(BaseModel):
name: str
b64_data: str