<reponame>AlenaYanish/Data_converter<gh_stars>0
from business_register.models.pep_models import Pep
from person.models.abstract import BasePersonRelationModel
from django.db import models


class Person2PepUkr(BasePersonRelationModel):
    pep = models.OneToOneField(Pep, models.PROTECT)

    class Meta:
        constraints = [
            models.UniqueConstraint(fields=['person', 'pep'], name='unique_person2pep_ukr'),
        ]
