from django.db import models # Create your models here. class Blog(models.Model): title = models.CharField(max_length=255) content = models.JsonField() authors = models.ManyToManyField('Author', related_name='blogs') created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return self.title