feat: add scouting shortlist mvp
This commit is contained in:
@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user