fuzik / app /models /concert.py
date3k2's picture
Add new files and models
d2726bc
raw
history blame contribute delete
259 Bytes
from pydantic import BaseModel
class ConcertInfo(BaseModel):
name: str
location: str
description: str | None = None
start_at: str
number_of_tickets: int = 0
class Concert(ConcertInfo):
id: int
created_at: str
group_id: int