Files
liederwahl/app/schemas.py
matthias@matsewe.de 0546a88e32 Implement Veto Mode
2024-05-29 10:33:42 +02:00

23 lines
557 B
Python

from typing import Optional
from pydantic import BaseModel
class Song(BaseModel):
id: int
og_artist: Optional[str]
aca_artist: Optional[str]
title: Optional[str]
url: Optional[str]
yt_id: Optional[str]
spfy_id: Optional[str]
thumbnail: Optional[str]
is_current: Optional[bool]
is_aca: Optional[bool]
arng_url: Optional[str]
categories: Optional[dict[str, bool]]
main_category: Optional[str]
singable: Optional[bool]
comment: Optional[str]
vote: Optional[int]
vote_comment: Optional[str]