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

# Create your models here.

class UserProfileInfo(models.Model):

    user=models.OneToOneField(User)
     #[username,email,password]
    #dont inherit but make a relation onetoone

    profile_url=models.URLField(blank=True)
    

    profile_pic=models.ImageField(upload_to='profile_pic',blank=True)


    def __str__(self):

        return self.user.username
