# Generated by Django 4.1.7 on 2023-05-12 17:47

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


class Migration(migrations.Migration):
    dependencies = [
        ("dati_geo_app", "0005_alter_provincia_regione"),
    ]

    operations = [
        migrations.CreateModel(
            name="Nazione",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("codifica", models.CharField(max_length=2)),
                ("descrizione", models.CharField(max_length=250, null=True)),
            ],
            options={
                "verbose_name": "nazione",
                "verbose_name_plural": "nazione",
            },
        ),
        migrations.AddField(
            model_name="indirizzo",
            name="nazione",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to="dati_geo_app.nazione",
            ),
        ),
    ]
