How would you define the relationship between a star and a constellation in a Django model?
class Star(models.Model): name = models.CharField(max_length=100) class Constellation(models.Model): stars = models.OneToManyField(Star)
class Star(models.Model): name = models.CharField(max_length=100) class Constellation(models.Model): stars = models.ManyToManyField(Star)
class Star(models.Model): constellation = models.ForeignKey(Constellation, on_delete=models.CASCADE) class Constellation(models.Model): stars = models.ForeignKey(Star, on_delete=models.CASCADE)
class Star(models.Model): constellation = models.ManyToManyField(Constellation) class Constellation(models.Model): name = models.CharField(max_length=100)