from django.db import models
import datetime


class User(models.Model):
    firstName = models.TextField()
    lastName = models.TextField()
    email = models.TextField()
    password = models.TextField()
    userType = models.TextField(default='General')
    username = models.TextField()
    status = models.IntegerField(default=1)
    score = models.TextField(default='0')
    verificationCode = models.TextField()
    isVerified = models.BooleanField(default=False)

    def __str__(self):
        return self.firstName + " " + self.lastName


class Challenge(models.Model):
    challengeTitle = models.TextField()
    challengeDescription = models.TextField()
    challengeCreatedAt = models.DateField(("Date"), default=datetime.date.today)
    challengeDeadline = models.DateField()
    status = models.IntegerField(default=1)


class Dataset(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    fileCaption = models.TextField()
    uploadedAt = models.DateField(("Date"), default=datetime.date.today)
    filePath = models.TextField()
    status = models.IntegerField(default=1)


class Prediction(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    submittedBy = models.ForeignKey(User, on_delete=models.CASCADE)
    submittedAt = models.DateField(("Date"), default=datetime.date.today)
    predictionDescription = models.TextField()
    score = models.TextField(null=True)
    scoreUpdatedAt = models.TextField(null=True)
    status = models.IntegerField(default=1)

38bc7b7f6fd62d60fb379faf15ee51ddd9ac76ad
<mask token>


class Challenge(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Dataset(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    fileCaption = models.TextField()
    uploadedAt = models.DateField('Date', default=datetime.date.today)
    filePath = models.TextField()
    status = models.IntegerField(default=1)


class Prediction(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    submittedBy = models.ForeignKey(User, on_delete=models.CASCADE)
    submittedAt = models.DateField('Date', default=datetime.date.today)
    predictionDescription = models.TextField()
    score = models.TextField(null=True)
    scoreUpdatedAt = models.TextField(null=True)
    status = models.IntegerField(default=1)

<mask token>


class Challenge(models.Model):
    challengeTitle = models.TextField()
    challengeDescription = models.TextField()
    challengeCreatedAt = models.DateField('Date', default=datetime.date.today)
    challengeDeadline = models.DateField()
    status = models.IntegerField(default=1)


class Dataset(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    fileCaption = models.TextField()
    uploadedAt = models.DateField('Date', default=datetime.date.today)
    filePath = models.TextField()
    status = models.IntegerField(default=1)


class Prediction(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    submittedBy = models.ForeignKey(User, on_delete=models.CASCADE)
    submittedAt = models.DateField('Date', default=datetime.date.today)
    predictionDescription = models.TextField()
    score = models.TextField(null=True)
    scoreUpdatedAt = models.TextField(null=True)
    status = models.IntegerField(default=1)

<mask token>


class User(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Challenge(models.Model):
    challengeTitle = models.TextField()
    challengeDescription = models.TextField()
    challengeCreatedAt = models.DateField('Date', default=datetime.date.today)
    challengeDeadline = models.DateField()
    status = models.IntegerField(default=1)


class Dataset(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    fileCaption = models.TextField()
    uploadedAt = models.DateField('Date', default=datetime.date.today)
    filePath = models.TextField()
    status = models.IntegerField(default=1)


class Prediction(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    submittedBy = models.ForeignKey(User, on_delete=models.CASCADE)
    submittedAt = models.DateField('Date', default=datetime.date.today)
    predictionDescription = models.TextField()
    score = models.TextField(null=True)
    scoreUpdatedAt = models.TextField(null=True)
    status = models.IntegerField(default=1)

<mask token>


class User(models.Model):
    firstName = models.TextField()
    lastName = models.TextField()
    email = models.TextField()
    password = models.TextField()
    userType = models.TextField(default='General')
    username = models.TextField()
    status = models.IntegerField(default=1)
    score = models.TextField(default='0')
    verificationCode = models.TextField()
    isVerified = models.BooleanField(default=False)

    def __str__(self):
        return self.firstName + ' ' + self.lastName


class Challenge(models.Model):
    challengeTitle = models.TextField()
    challengeDescription = models.TextField()
    challengeCreatedAt = models.DateField('Date', default=datetime.date.today)
    challengeDeadline = models.DateField()
    status = models.IntegerField(default=1)


class Dataset(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    fileCaption = models.TextField()
    uploadedAt = models.DateField('Date', default=datetime.date.today)
    filePath = models.TextField()
    status = models.IntegerField(default=1)


class Prediction(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    submittedBy = models.ForeignKey(User, on_delete=models.CASCADE)
    submittedAt = models.DateField('Date', default=datetime.date.today)
    predictionDescription = models.TextField()
    score = models.TextField(null=True)
    scoreUpdatedAt = models.TextField(null=True)
    status = models.IntegerField(default=1)

from django.db import models
import datetime


class User(models.Model):
    firstName = models.TextField()
    lastName = models.TextField()
    email = models.TextField()
    password = models.TextField()
    userType = models.TextField(default='General')
    username = models.TextField()
    status = models.IntegerField(default=1)
    score = models.TextField(default='0')
    verificationCode = models.TextField()
    isVerified = models.BooleanField(default=False)

    def __str__(self):
        return self.firstName + " " + self.lastName


class Challenge(models.Model):
    challengeTitle = models.TextField()
    challengeDescription = models.TextField()
    challengeCreatedAt = models.DateField(("Date"), default=datetime.date.today)
    challengeDeadline = models.DateField()
    status = models.IntegerField(default=1)


class Dataset(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    fileCaption = models.TextField()
    uploadedAt = models.DateField(("Date"), default=datetime.date.today)
    filePath = models.TextField()
    status = models.IntegerField(default=1)


class Prediction(models.Model):
    challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE)
    submittedBy = models.ForeignKey(User, on_delete=models.CASCADE)
    submittedAt = models.DateField(("Date"), default=datetime.date.today)
    predictionDescription = models.TextField()
    score = models.TextField(null=True)
    scoreUpdatedAt = models.TextField(null=True)
    status = models.IntegerField(default=1)
