Hey guys I'm creating a primitive social media app and I'm trying to create an array in my table that has a list of usernames that the user will be following so that their feed shows only posts from users that they are following.
How can I do this? Right now I only have integers and strings but what if I need an array or a data type that can store multiple values?
Here is my code. I want "follows" to be the array (or multiple value) field.
class User(AbstractUser):
pass
follows = models.CharField(max_length=64, default=0)
followers = models.IntegerField(default=0)