feat: add shared scouting notes mvp

This commit is contained in:
bisco
2026-04-07 17:41:53 +02:00
parent 4f869c1c02
commit 4651746427
9 changed files with 176 additions and 5 deletions

View File

@ -178,3 +178,22 @@ class FavoritePlayer(models.Model):
def __str__(self) -> str:
return f"Favorite: {self.player.full_name}"
class PlayerNote(models.Model):
# Phase-2 MVP keeps notes shared within the local development environment so
# scouting observations can be used immediately without introducing auth yet.
player = models.ForeignKey(
Player,
on_delete=models.CASCADE,
related_name="notes",
)
body = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
ordering = ["-created_at", "-id"]
def __str__(self) -> str:
return f"Note for {self.player.full_name}"