# Path: apps/contacts/models.py
# class BaseContact(models.Model):
#     class Meta:
# class Skype(BaseContact):
#     class Meta:
# class Email(BaseContact):
#     class Meta:
# class PhoneNumber(BaseContact):
#     class Meta:
# class GitAccount(BaseContact):
#     class Meta:
#     CONTACT_EXTRA_DATA = ('skype', _('Skype accounts'))
#     CONTACT_EXTRA_DATA = ('email', _('Emails'))
#     CONTACT_EXTRA_DATA = ('phone_number', _('Phone numbers'))
#     CONTACT_EXTRA_DATA = ('git', _('Git accounts'))


from graphene_django.types import DjangoObjectType
from apps.contacts import models



class EmailType(DjangoObjectType):
    class Meta:
        model = models.Email
        filter_fields = {
            'email': ['iexact'],
            'is_active': ['exact']
        }


class PhoneNumberType(DjangoObjectType):
    class Meta:

# Path: apps/contacts/models.py
# class BaseContact(models.Model):
#     class Meta:
# class Skype(BaseContact):
#     class Meta:
# class Email(BaseContact):
#     class Meta:
# class PhoneNumber(BaseContact):
#     class Meta:
# class GitAccount(BaseContact):
#     class Meta:
#     CONTACT_EXTRA_DATA = ('skype', _('Skype accounts'))
#     CONTACT_EXTRA_DATA = ('email', _('Emails'))
#     CONTACT_EXTRA_DATA = ('phone_number', _('Phone numbers'))
#     CONTACT_EXTRA_DATA = ('git', _('Git accounts'))


# Path: apps/contacts/schema/types.py
from graphene_django.types import DjangoObjectType
from apps.contacts import models




class EmailType(DjangoObjectType):
    class Meta:
        model = models.Email
        filter_fields = {
            'email': ['iexact'],
            'is_active': ['exact']
        }


class PhoneNumberType(DjangoObjectType):
    class Meta:

        model = models.PhoneNumber