adding gamechanger, in progress
This commit is contained in:
20
gamechanger/models.py
Normal file
20
gamechanger/models.py
Normal 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)
|
||||
Reference in New Issue
Block a user