"""Models for Users"""
#Djanngo
from django.contrib.auth.models import User
from django.db import models

class Profile(models.Model):
    """Profile models
    Proxy model"""

    user = models.OneToOneField(User, on_delete=models.CASCADE)

    webside = models.URLField(max_length=200, blank=True)

    biography = models.TextField(blank=True)

    phone_number = models.CharField(max_length=20, blank=True)

    picture = models.ImageField(upload_to='users/pictures',blank=True,null=True)

    created = models.DateTimeField(auto_now_add=True)

    modified = models.DateTimeField(auto_now=True)

    def __str__(self):
        return self.user.username
    


