Как использовать табличное пространство в django для этой модели

У меня есть несколько моделей с отношениями, и мне нужно использовать табличное пространство в этих моделях, пожалуйста, помогите, как мне решить эту проблему.

class Teacher(models.Model):

# classe 365's id of the teacher
classe_365_id = models.CharField(unique=True, max_length=50)
# email of the teacher
email = models.EmailField(max_length=254)
# first name of the teacher
first_name = models.CharField(max_length=50)
# last name of the teacher
last_name = models.CharField(max_length=50)
# Many to Many fiels with the subject, because a teacher can teach multiple subjects 
# and also a subject can be taught by many teacher in same class
subjects = models.ManyToManyField('Subject')

#status for teacher is active or not
# status =  models.BooleanField(default=True)

def __str__(self):
    return self.first_name + self.last_name
Вернуться на верх