title: How to create a timetable for school with models in django
body: <p>Hi I'm new in Django and I want to create a web page that you can insert there a timetable of a school class, but I'm having a hard time to write the models for that task.
  I made classes for a table, days and lessons, but I can't figure out how to not repeat information because every user can input as many time tables that they want, and every time table have the 7 weekdays, therefor I'll have the same day object more then once.</p>
  <p>here my models:</p>
  <pre><code>from django.urls import reverse
  from django.db import models
  
  
  # Create your models here.
  
  class Table(models.Model):
      name = models.CharField(max_length = 100, unique=True)
  
  
  class Day(models.Model):
      # this spesific the table the those days belong to
      table = models.ForeignKey(Table,on_delete=models.CASCADE)
      name = models.CharField(max_length = 10)
      # here we get this day lessons info in a list of dictionaris in a form of json
      lessons = models.TextField(null=True)
  
      def __str__(self):
          return self.table.name +' : ' + self.name
  
  # here the class contain a lesson information
  class Lesson(models.Model):
      table = models.ForeignKey(Table,on_delete = models.CASCADE)
      name = models.CharField(max_length = 50) 
  
      def __str__(self):
          return self.name
  </code></pre>
  <p>I'll be happy to hear a better way to create this data stracture.
  thank you.</p>