from django.db import models

# Create your models here.

class Class(models.Model):
    name = models.CharField(max_length=32)

class Student(models.Model):
    name = models.CharField(max_length=32)
    classs = models.ForeignKey(Class,on_delete=models.CASCADE)

class Teacher(models.Model):
    name = models.CharField(max_length=32)
    subject = models.CharField(max_length=32)
    classs = models.ManyToManyField(Class)



604654de57b58ede45b5c48f58b3c30d91408f34
<mask token>


class Student(models.Model):
    name = models.CharField(max_length=32)
    classs = models.ForeignKey(Class, on_delete=models.CASCADE)


class Teacher(models.Model):
    name = models.CharField(max_length=32)
    subject = models.CharField(max_length=32)
    classs = models.ManyToManyField(Class)

<mask token>


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


class Student(models.Model):
    name = models.CharField(max_length=32)
    classs = models.ForeignKey(Class, on_delete=models.CASCADE)


class Teacher(models.Model):
    name = models.CharField(max_length=32)
    subject = models.CharField(max_length=32)
    classs = models.ManyToManyField(Class)

<mask token>


class Class(models.Model):
    name = models.CharField(max_length=32)


class Student(models.Model):
    name = models.CharField(max_length=32)
    classs = models.ForeignKey(Class, on_delete=models.CASCADE)


class Teacher(models.Model):
    name = models.CharField(max_length=32)
    subject = models.CharField(max_length=32)
    classs = models.ManyToManyField(Class)

from django.db import models


class Class(models.Model):
    name = models.CharField(max_length=32)


class Student(models.Model):
    name = models.CharField(max_length=32)
    classs = models.ForeignKey(Class, on_delete=models.CASCADE)


class Teacher(models.Model):
    name = models.CharField(max_length=32)
    subject = models.CharField(max_length=32)
    classs = models.ManyToManyField(Class)

from django.db import models

# Create your models here.

class Class(models.Model):
    name = models.CharField(max_length=32)

class Student(models.Model):
    name = models.CharField(max_length=32)
    classs = models.ForeignKey(Class,on_delete=models.CASCADE)

class Teacher(models.Model):
    name = models.CharField(max_length=32)
    subject = models.CharField(max_length=32)
    classs = models.ManyToManyField(Class)


