refactor and set up authentication

This commit is contained in:
2024-04-25 11:23:47 +02:00
parent bbd78faf09
commit 2185b217e1
10 changed files with 211 additions and 35 deletions

17
app/models.py Normal file
View File

@@ -0,0 +1,17 @@
from typing import Optional, List
import gspread
from pydantic import BaseModel
class GoogleFile(BaseModel):
file_id: str
file_name: str
class Genre(BaseModel):
genre_id: Optional[int]
genre_name: str
class Song(BaseModel):
song_id: Optional[int]
song_title: str
url: str
genres: List[Genre]