25 lines
519 B
Python
25 lines
519 B
Python
from typing import Optional, List
|
|
import gspread
|
|
from pydantic import BaseModel
|
|
from enum import Enum
|
|
|
|
class GoogleFile(BaseModel):
|
|
file_id: str
|
|
file_name: str
|
|
|
|
class Genre(BaseModel):
|
|
genre_id: Optional[int]
|
|
genre_name: str
|
|
|
|
class Song(BaseModel):
|
|
id: int
|
|
og_artist: Optional[str]
|
|
aca_artist: Optional[str]
|
|
title: str
|
|
yt_url: Optional[str]
|
|
is_aca: bool
|
|
arng_url: Optional[str]
|
|
categories: dict[str, bool]
|
|
main_category: str
|
|
singable: bool
|
|
vote: Optional[int] |