others - python - Django :如何在数据库中存储日期和某人听音乐的日期列表?

我有2个模型Song和Person :


class Person(models.Model):


 name = models.CharField(max_length=128)


 def __str__(self):


 return self.name



class Song(models.Model):


 name = models.CharField(max_length=128)


 def __str__(self):


 return self.name




我想创建一个字段来存储这个人听音乐和听歌的日期列表。


2019-10-2 -> (Song 3, Song 25, Song 50)


2019-10-3 -> (Song 4, Song 5, Song 12)


2019-10-7 -> (Song 77, Song 22, Song 11)



我可以用什么类型的字段? 有其他方法来储存这些信息吗?


class Song(models.Model):


 person = models.OneToOneField(Person)


 date = models.DateField()


 songs = models.ManyToManyField(Song)



我对数据库和Django非常陌生,所以我不太确定哪种方式是存储这种信息的正确方式?

谢谢!

时间:


class Person(models.Model):


 name = models.CharField(max_length=128)


 def __str__(self):


 return self.name



class Song(models.Model):


 name = models.CharField(max_length=128)


 def __str__(self):


 return self.name



class Listens(models.Model):


 song = models.ForeignKey(Song, on_delete=models.Cascade)


 date = models.DateTimeField()


 person = ForeignKey(Person, on_delete=models.Cascade)



...