add classes

This commit is contained in:
Simone Tesini 2025-08-01 18:46:38 +02:00
parent d59f743708
commit f0defdd918
4 changed files with 31 additions and 12 deletions

18
backend/src/room.py Normal file
View file

@ -0,0 +1,18 @@
from dataclasses import dataclass
from song import Song
type UserScoredSong = tuple[Song, int]
@dataclass
class Room:
id: int
coord: tuple[float, float]
name: str
pin: int | None
tags: set[str]
creative: bool
playlist: set[UserScoredSong]
history: list[Song]