16 lines
397 B
Python
16 lines
397 B
Python
from pydantic import BaseModel
|
|
from typing import Optional
|
|
|
|
class Athlete(BaseModel):
|
|
"""
|
|
Modèle Athlète
|
|
"""
|
|
id: Optional[int]
|
|
prenom: str
|
|
nom: str
|
|
pays: str
|
|
sexe: str = "N/A"
|
|
image: str = "https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_640.png"
|
|
disciplines: Optional[list[int]] = None
|
|
records: Optional[list[int]] = None
|