# Generated by Django 1.11.17 on 2019-01-10 11:08

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('planitech', '0002_planitechconnector_custom_fields'),
    ]

    operations = [
        migrations.CreateModel(
            name='Pairing',
            fields=[
                (
                    'id',
                    models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
                ),
                ('name_id', models.CharField(max_length=256)),
                ('external_id', models.CharField(max_length=256)),
                ('created', models.DateTimeField(auto_now_add=True)),
                (
                    'resource',
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to='planitech.PlanitechConnector'
                    ),
                ),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='pairing',
            unique_together={('resource', 'name_id'), ('resource', 'external_id')},
        ),
    ]
