from django.db import models
from datetime import datetime


class PersonalInfo(models.Model):
    rollNo = models.CharField(max_length=20)
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    address = models.TextField(max_length=70)
    email = models.EmailField(max_length=30)
    phoneNo = models.IntegerField(max_length=10)


class AcedamicInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    yearOfJoining = models.IntegerField(max_length=30)
    aggregate = models.IntegerField(max_length=30)
    upperSecondaryInstitution = models.CharField(max_length=70)
    upperSecondaryBoard = models.CharField(max_length=30)
    upperSecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryInstitution = models.CharField(max_length=10)
    SecondaryBoard = models.CharField(max_length=10)


class AdditionalInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    coAcademicActivities = models.CharField(max_length=30)
    details = models.TextField(max_length=30)
    coCurriculars = models.CharField(max_length=30)
    hobbies = models.CharField(max_length=30)


class Notifications(models.Model):
    TPOId = models.CharField(max_length=30)
    date = models.DateTimeField(default=datetime.now, blank=True)
    drivedetails = models.TextField(max_length=70)


class Suggestion(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    facultyId = models.CharField(max_length=30)
    date = models.DateTimeField(max_length=30)
    suggestion = models.CharField(max_length=70)

e9ed69117cf35606d3ab0d61d07290d04281ae8c
<mask token>


class AdditionalInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    coAcademicActivities = models.CharField(max_length=30)
    details = models.TextField(max_length=30)
    coCurriculars = models.CharField(max_length=30)
    hobbies = models.CharField(max_length=30)


class Notifications(models.Model):
    TPOId = models.CharField(max_length=30)
    date = models.DateTimeField(default=datetime.now, blank=True)
    drivedetails = models.TextField(max_length=70)


class Suggestion(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    facultyId = models.CharField(max_length=30)
    date = models.DateTimeField(max_length=30)
    suggestion = models.CharField(max_length=70)

<mask token>


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


class AcedamicInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    yearOfJoining = models.IntegerField(max_length=30)
    aggregate = models.IntegerField(max_length=30)
    upperSecondaryInstitution = models.CharField(max_length=70)
    upperSecondaryBoard = models.CharField(max_length=30)
    upperSecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryInstitution = models.CharField(max_length=10)
    SecondaryBoard = models.CharField(max_length=10)


class AdditionalInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    coAcademicActivities = models.CharField(max_length=30)
    details = models.TextField(max_length=30)
    coCurriculars = models.CharField(max_length=30)
    hobbies = models.CharField(max_length=30)


class Notifications(models.Model):
    TPOId = models.CharField(max_length=30)
    date = models.DateTimeField(default=datetime.now, blank=True)
    drivedetails = models.TextField(max_length=70)


class Suggestion(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    facultyId = models.CharField(max_length=30)
    date = models.DateTimeField(max_length=30)
    suggestion = models.CharField(max_length=70)

<mask token>


class PersonalInfo(models.Model):
    rollNo = models.CharField(max_length=20)
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    address = models.TextField(max_length=70)
    email = models.EmailField(max_length=30)
    phoneNo = models.IntegerField(max_length=10)


class AcedamicInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    yearOfJoining = models.IntegerField(max_length=30)
    aggregate = models.IntegerField(max_length=30)
    upperSecondaryInstitution = models.CharField(max_length=70)
    upperSecondaryBoard = models.CharField(max_length=30)
    upperSecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryInstitution = models.CharField(max_length=10)
    SecondaryBoard = models.CharField(max_length=10)


class AdditionalInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    coAcademicActivities = models.CharField(max_length=30)
    details = models.TextField(max_length=30)
    coCurriculars = models.CharField(max_length=30)
    hobbies = models.CharField(max_length=30)


class Notifications(models.Model):
    TPOId = models.CharField(max_length=30)
    date = models.DateTimeField(default=datetime.now, blank=True)
    drivedetails = models.TextField(max_length=70)


class Suggestion(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    facultyId = models.CharField(max_length=30)
    date = models.DateTimeField(max_length=30)
    suggestion = models.CharField(max_length=70)

from django.db import models
from datetime import datetime


class PersonalInfo(models.Model):
    rollNo = models.CharField(max_length=20)
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    address = models.TextField(max_length=70)
    email = models.EmailField(max_length=30)
    phoneNo = models.IntegerField(max_length=10)


class AcedamicInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    yearOfJoining = models.IntegerField(max_length=30)
    aggregate = models.IntegerField(max_length=30)
    upperSecondaryInstitution = models.CharField(max_length=70)
    upperSecondaryBoard = models.CharField(max_length=30)
    upperSecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryPercentage = models.IntegerField(max_length=10)
    SecondaryInstitution = models.CharField(max_length=10)
    SecondaryBoard = models.CharField(max_length=10)


class AdditionalInfo(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    coAcademicActivities = models.CharField(max_length=30)
    details = models.TextField(max_length=30)
    coCurriculars = models.CharField(max_length=30)
    hobbies = models.CharField(max_length=30)


class Notifications(models.Model):
    TPOId = models.CharField(max_length=30)
    date = models.DateTimeField(default=datetime.now, blank=True)
    drivedetails = models.TextField(max_length=70)


class Suggestion(models.Model):
    studentId = models.ForeignKey(PersonalInfo, on_delete=models.CASCADE)
    facultyId = models.CharField(max_length=30)
    date = models.DateTimeField(max_length=30)
    suggestion = models.CharField(max_length=70)
