# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import django.core.validators


class Migration(migrations.Migration):

    dependencies = [
        ('django_graph', '0001_initial'),
        ('contact', '0002_auto_20150628_2138'),
    ]

    operations = [
        migrations.CreateModel(
            name='EmailAddress',
            fields=[
                ('node_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='django_graph.Node')),
                ('email', models.EmailField(unique=True, max_length=254)),
            ],
            options={
                'abstract': False,
            },
            bases=('django_graph.node',),
        ),
        migrations.CreateModel(
            name='IsContactEmailAddress',
            fields=[
                ('relationship_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='django_graph.Relationship')),
                ('valid_from', models.DateTimeField(null=True, blank=True)),
                ('valid_to', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'abstract': False,
            },
            bases=('django_graph.relationship', models.Model),
        ),
        migrations.CreateModel(
            name='IsContactPhoneNumber',
            fields=[
                ('relationship_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='django_graph.Relationship')),
                ('valid_from', models.DateTimeField(null=True, blank=True)),
                ('valid_to', models.DateTimeField(null=True, blank=True)),
                ('phone_number_type', models.CharField(blank=True, max_length=30, null=True, choices=[(b'HOME', b'Home'), (b'MOBILE', b'Mobile'), (b'WORK', b'Work'), (b'SCHOOL', b'School'), (b'OTHER', b'Other')])),
            ],
            options={
                'abstract': False,
            },
            bases=('django_graph.relationship', models.Model),
        ),
        migrations.CreateModel(
            name='PhoneNumber',
            fields=[
                ('node_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='django_graph.Node')),
                ('us_phone_number', models.CharField(unique=True, max_length=10, validators=[django.core.validators.RegexValidator(regex=b'[0-9]{10}')])),
            ],
            options={
                'abstract': False,
            },
            bases=('django_graph.node',),
        ),
    ]
