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