from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    """Custom user model. Uses email as the unique identifier field."""

    class Meta:
        db_table = "users_user"
        verbose_name = "User"
        verbose_name_plural = "Users"

    def __str__(self) -> str:
        return self.email or self.username