You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
api/app/models/pin.py

13 lines
335 B

from typing import Optional, List
from pydantic import BaseModel
from datetime import datetime
class Pin(BaseModel):
id: Optional[str]
title: str
description: str
location: list
complete_address: str
files: Optional[List[str]] = [] # Liste des IDs d'images
user_id: str
date: Optional[datetime] = None