gamechanger updates (added events, teams). not used yet.
update requirements
This commit is contained in:
@@ -14,12 +14,17 @@ class Account(models.Model):
|
||||
password = CharField(max_length=255)
|
||||
|
||||
|
||||
class Team(models.Model):
|
||||
id = models.CharField(primary_key=True, max_length=30)
|
||||
slug = CharField(max_length=30)
|
||||
season_slug = CharField(max_length=30)
|
||||
|
||||
|
||||
class Preferences(models.Model):
|
||||
user = models.OneToOneField(
|
||||
User, on_delete=models.CASCADE, related_name="gamechanger_preferences"
|
||||
)
|
||||
season_id = CharField(max_length=255)
|
||||
team_id = CharField(max_length=255)
|
||||
managed_team = models.OneToOneField(Team, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "preferences"
|
||||
|
||||
Reference in New Issue
Block a user