from django.db import models

class Users(models.Model):
	username = models.CharField(max_length=20,primary_key=True)
	mailid = models.EmailField(max_length =254,default="NULL")
	password1 = models.CharField(max_length=20,default="NULL")
	password2 = models.CharField(max_length=20,default="NULL")
	firstName= models.CharField(max_length=15,default="NULL")
	middleName= models.CharField(max_length=15,default="NULL")
	lastName= models.CharField(max_length=15,default="NULL")
	university = models.CharField(max_length=40,default="NULL")
	degree=models.CharField(max_length=20,default="NULL")
	country=models.CharField(max_length=15,default="NULL")
# Create your models here.

class Question(models.Model):
	question_Id = models.CharField(max_length=20)
	cinput = models.CharField(max_length=20)
	Eoutput = models.CharField(max_length=20)
	question_name=models.CharField(max_length=30)
	q_level=models.CharField(max_length=20)
	max_marks=models.IntegerField()

class Que(models.Model):
	question_Id = models.CharField(max_length=20,primary_key=True)
	question_name=models.CharField(max_length=30)
	q_level=models.CharField(max_length=20)
	max_marks=models.IntegerField()

class Rank(models.Model):
	username = models.ForeignKey(Users,on_delete=models.CASCADE)
	marks=models.IntegerField()
	question_Id = models.ForeignKey(Que,on_delete=models.CASCADE)

class Feedback(models.Model):
	username=models.ForeignKey(Users,on_delete=models.CASCADE)
	feedback=models.CharField(max_length=2000)
		
8eb3f94aa3dc2aede8ba95ba39ff0fed1137c2a6
<mask token>


class Que(models.Model):
    question_Id = models.CharField(max_length=20, primary_key=True)
    question_name = models.CharField(max_length=30)
    q_level = models.CharField(max_length=20)
    max_marks = models.IntegerField()


class Rank(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    marks = models.IntegerField()
    question_Id = models.ForeignKey(Que, on_delete=models.CASCADE)


class Feedback(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    feedback = models.CharField(max_length=2000)

<mask token>


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


class Que(models.Model):
    question_Id = models.CharField(max_length=20, primary_key=True)
    question_name = models.CharField(max_length=30)
    q_level = models.CharField(max_length=20)
    max_marks = models.IntegerField()


class Rank(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    marks = models.IntegerField()
    question_Id = models.ForeignKey(Que, on_delete=models.CASCADE)


class Feedback(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    feedback = models.CharField(max_length=2000)

<mask token>


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


class Question(models.Model):
    question_Id = models.CharField(max_length=20)
    cinput = models.CharField(max_length=20)
    Eoutput = models.CharField(max_length=20)
    question_name = models.CharField(max_length=30)
    q_level = models.CharField(max_length=20)
    max_marks = models.IntegerField()


class Que(models.Model):
    question_Id = models.CharField(max_length=20, primary_key=True)
    question_name = models.CharField(max_length=30)
    q_level = models.CharField(max_length=20)
    max_marks = models.IntegerField()


class Rank(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    marks = models.IntegerField()
    question_Id = models.ForeignKey(Que, on_delete=models.CASCADE)


class Feedback(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    feedback = models.CharField(max_length=2000)

<mask token>


class Users(models.Model):
    username = models.CharField(max_length=20, primary_key=True)
    mailid = models.EmailField(max_length=254, default='NULL')
    password1 = models.CharField(max_length=20, default='NULL')
    password2 = models.CharField(max_length=20, default='NULL')
    firstName = models.CharField(max_length=15, default='NULL')
    middleName = models.CharField(max_length=15, default='NULL')
    lastName = models.CharField(max_length=15, default='NULL')
    university = models.CharField(max_length=40, default='NULL')
    degree = models.CharField(max_length=20, default='NULL')
    country = models.CharField(max_length=15, default='NULL')


class Question(models.Model):
    question_Id = models.CharField(max_length=20)
    cinput = models.CharField(max_length=20)
    Eoutput = models.CharField(max_length=20)
    question_name = models.CharField(max_length=30)
    q_level = models.CharField(max_length=20)
    max_marks = models.IntegerField()


class Que(models.Model):
    question_Id = models.CharField(max_length=20, primary_key=True)
    question_name = models.CharField(max_length=30)
    q_level = models.CharField(max_length=20)
    max_marks = models.IntegerField()


class Rank(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    marks = models.IntegerField()
    question_Id = models.ForeignKey(Que, on_delete=models.CASCADE)


class Feedback(models.Model):
    username = models.ForeignKey(Users, on_delete=models.CASCADE)
    feedback = models.CharField(max_length=2000)

from django.db import models

class Users(models.Model):
	username = models.CharField(max_length=20,primary_key=True)
	mailid = models.EmailField(max_length =254,default="NULL")
	password1 = models.CharField(max_length=20,default="NULL")
	password2 = models.CharField(max_length=20,default="NULL")
	firstName= models.CharField(max_length=15,default="NULL")
	middleName= models.CharField(max_length=15,default="NULL")
	lastName= models.CharField(max_length=15,default="NULL")
	university = models.CharField(max_length=40,default="NULL")
	degree=models.CharField(max_length=20,default="NULL")
	country=models.CharField(max_length=15,default="NULL")
# Create your models here.

class Question(models.Model):
	question_Id = models.CharField(max_length=20)
	cinput = models.CharField(max_length=20)
	Eoutput = models.CharField(max_length=20)
	question_name=models.CharField(max_length=30)
	q_level=models.CharField(max_length=20)
	max_marks=models.IntegerField()

class Que(models.Model):
	question_Id = models.CharField(max_length=20,primary_key=True)
	question_name=models.CharField(max_length=30)
	q_level=models.CharField(max_length=20)
	max_marks=models.IntegerField()

class Rank(models.Model):
	username = models.ForeignKey(Users,on_delete=models.CASCADE)
	marks=models.IntegerField()
	question_Id = models.ForeignKey(Que,on_delete=models.CASCADE)

class Feedback(models.Model):
	username=models.ForeignKey(Users,on_delete=models.CASCADE)
	feedback=models.CharField(max_length=2000)
		