25 lines
358 B
Python
25 lines
358 B
Python
from datetime import datetime
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Boucle(BaseModel):
|
|
id: int
|
|
name: str
|
|
geolocalisation: str
|
|
|
|
|
|
class ComptageBase(BaseModel):
|
|
id_boucle: int
|
|
datetime: datetime
|
|
count: int
|
|
week_day = int
|
|
holiday = bool
|
|
|
|
|
|
class ComptageCreate(ComptageBase):
|
|
pass
|
|
|
|
|
|
class Comptage(ComptageBase):
|
|
id: int
|