from django.db import models

# Create your models here.
class Student(models.Model):
    name = models.CharField(max_length=191, null=True)
    age = models.CharField(max_length=20, null=True)
    course = models.CharField(max_length=191, null=True)
    phone = models.CharField(max_length=191, null=True)
    email = models.CharField(max_length=191, null=True)
    dateCreated = models.DateTimeField(auto_now_add=True, null=True)

    def __str__(self): #this is to show the name in the admin panel, you will understand in the next tutorial
        return self.name #even if you dont write this function, you will not face any issues 


 # class Lecturer(models.Model):
 #    name = models.CharField(max_length=191, null=True)
 #    age = models.CharField(max_length=20, null=True)
 #    course = models.CharField(max_length=191, null=True)
 #    phone = models.CharField(max_length=191, null=True)
 #    email = models.CharField(max_length=191, null=True)
 #    dateCreated = models.DateTimeField(auto_now_add=True, null=True)

 #    def __str__(self): #this is to show the name in the admin panel, you will understand in the next tutorial
 #        return self.name #even if you dont write this function, you will not face any issues        
