# Generated by Django 2.2.19 on 2021-08-03 18:35

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


class Migration(migrations.Migration):

    dependencies = [
        ('base_adresse', '0021_streetmodel_resource_alter'),
    ]

    operations = [
        migrations.AddField(
            model_name='addresscachemodel',
            name='resource',
            field=models.ForeignKey(
                default=None,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='base_adresse.BaseAdresse',
                verbose_name='BAN Connector',
            ),
        ),
        migrations.AddField(
            model_name='citymodel',
            name='resource',
            field=models.ForeignKey(
                default=None,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='base_adresse.BaseAdresse',
                verbose_name='BAN Connector',
            ),
        ),
        migrations.AddField(
            model_name='departmentmodel',
            name='resource',
            field=models.ForeignKey(
                default=None,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='base_adresse.BaseAdresse',
                verbose_name='BAN Connector',
            ),
        ),
        migrations.AddField(
            model_name='regionmodel',
            name='resource',
            field=models.ForeignKey(
                default=None,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='base_adresse.BaseAdresse',
                verbose_name='BAN Connector',
            ),
        ),
        migrations.AlterField(
            model_name='addresscachemodel',
            name='api_id',
            field=models.CharField(max_length=30),
        ),
        migrations.AlterField(
            model_name='departmentmodel',
            name='code',
            field=models.CharField(max_length=3, verbose_name='Department code'),
        ),
        migrations.AlterField(
            model_name='regionmodel',
            name='code',
            field=models.CharField(max_length=2, verbose_name='Region code'),
        ),
        migrations.AlterUniqueTogether(
            name='addresscachemodel',
            unique_together={('resource', 'api_id')},
        ),
        migrations.AlterUniqueTogether(
            name='citymodel',
            unique_together={('resource', 'code', 'zipcode')},
        ),
        migrations.AlterUniqueTogether(
            name='departmentmodel',
            unique_together={('resource', 'code')},
        ),
        migrations.AlterUniqueTogether(
            name='regionmodel',
            unique_together={('resource', 'code')},
        ),
    ]
