from django.db import models
from django.contrib.auth.models import User


class Profile(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="profile")
    bio = models.TextField(blank=True)
    pic = models.ImageField(upload_to='media/images/')
    friends = models.ManyToManyField("self")
