adding gamechanger, in progress

This commit is contained in:
2022-06-07 16:55:02 -05:00
parent 42d5c452e7
commit 82e77b9e6f
19 changed files with 337 additions and 28 deletions

20
gamechanger/models.py Normal file
View File

@@ -0,0 +1,20 @@
from django.db import models
from django.db.models import CharField, EmailField
from benchcoach.users.models import User
# Create your models here.
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="gamechanger_account")
email = EmailField()
password = CharField(max_length=255)
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)
class Player(models.Model):
id = models.AutoField(primary_key=True)
teamsnap_member_id = models.IntegerField()
fname = CharField(max_length=30)
lname = CharField(max_length=30)