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

# Create your models here.
class CustomUser(AbstractUser):
    display_name = models.CharField(max_length=50, null=True, blank=True)
    homepage = models.URLField(max_length=200, null=True, blank=True)
    age = models.IntegerField(null=True, blank=True)
    followers = models.ManyToManyField('self', symmetrical=False, blank=True)

    REQUIRED_FIELDS = ['display_name', 'homepage', 'age']
