feat: add scouting shortlist mvp

This commit is contained in:
bisco
2026-04-07 17:29:55 +02:00
parent d1b5499a63
commit 99820419c4
10 changed files with 273 additions and 125 deletions

View File

@ -161,3 +161,20 @@ class PlayerSeasonStats(models.Model):
def __str__(self) -> str:
return f"Stats for {self.player_season}"
class FavoritePlayer(models.Model):
# Phase-2 MVP uses a single shared development shortlist instead of user-scoped
# favorites so the workflow stays useful without introducing auth complexity yet.
player = models.OneToOneField(
Player,
on_delete=models.CASCADE,
related_name="favorite_entry",
)
created_at = models.DateTimeField(auto_now_add=True)
class Meta:
ordering = ["-created_at", "player__full_name"]
def __str__(self) -> str:
return f"Favorite: {self.player.full_name}"