<gh_stars>1-10
""" Define the Client model."""

# Django imports
from django.db import models
from django.utils.translation import gettext_lazy as _

# Utils Abstract model
from hisitter.utils.abstract_users import HisitterModel

# Models
from .users import User


class Client(HisitterModel):
    """ Class which create the relation between User and client,
        this class is maked with the objective of control the children
        of each user."""
    user_client = models.OneToOneField(
        User,
        verbose_name=_("Client"),
        related_name='user_client',
        on_delete=models.CASCADE
    )
    
    def __str__(self):
        return str(self.user_client)

""" Define the Client model."""

# Django imports
from django.db import models
from django.utils.translation import gettext_lazy as _

# Utils Abstract model
from hisitter.utils.abstract_users import HisitterModel

# Models
from .users import User


class Client(HisitterModel):
    """ Class which create the relation between User and client,
        this class is maked with the objective of control the children
        of each user."""
    user_client = models.OneToOneField(
        User,
        verbose_name=_("Client"),
        related_name='user_client',
        on_delete=models.CASCADE
    )
    
    def __str__(self):
        return str(self.user_client)
Define the Client model. # Django imports # Utils Abstract model # Models Class which create the relation between User and client,         this class is maked with the objective of control the children         of each user.