Files
fundi-scraper-api/api/models.py
T
2026-09-02 20:20:01 +02:00

24 lines
439 B
Python

from typing import List, Optional
from pydantic import BaseModel
class Artist(BaseModel):
artist_name: str
artist_play_time_start: str
artist_play_time_end: str
class Event(BaseModel):
event_date: str
event_name: str
event_artists: List[List[Artist]]
event_starttime: str
event_ticket_link: str
event_free: Optional[bool] = None
class EventList(BaseModel):
count: int
events: List[Event]