text: from django.db import models
  from django.contrib.auth.models import AbstractBaseUser
  from django.contrib.auth.models import PermissionsMixin
  from django.utils.translation import gettext_lazy as _
  from .managers import CustomUserManager
  
  # Create your models here.
  class Usuario(AbstractBaseUser):    
      username = None
      nome = models.CharField(_('name'), max_length=100, blank=True)
      email = models.EmailField(_('email address'), unique=True)
      is_active = models.BooleanField(default=True)
      is_staff = models.BooleanField(default=False)
      is_superuser = models.BooleanField(default=False)
  
      objects = CustomUserManager()
  
      USERNAME_FIELD = 'email'
      REQUIRED_FIELDS = ['nome']    
  
      def __str__(self):
          return self.email
      
      def has_perm(self, perm, obj=None):
          "Does the user have a specific permission?"
          # Simplest possible answer: Yes, always
          return True
  
      def has_module_perms(self, app_label):
          "Does the user have permissions to view the app `app_label`?"
          # Simplest possible answer: Yes, always
          return True
  