# Generated by Django 3.2.5 on 2022-07-07 08:31

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


class Migration(migrations.Migration):

    dependencies = [
        ('dati_geo_app', '0002_caricamento_dati'),
    ]

    operations = [
        migrations.CreateModel(
            name='DUG',
            fields=[
                ('nome', models.CharField(max_length=40, primary_key=True, serialize=False)),
            ],
            options={
                'verbose_name': 'denominazione urbanistica generica',
                'verbose_name_plural': 'denominazioni urbanistiche generiche',
            },
        ),
        migrations.AlterModelOptions(
            name='comune',
            options={'ordering': ('nome', 'provincia_id'), 'verbose_name': 'comune', 'verbose_name_plural': 'comuni'},
        ),
        migrations.AlterModelOptions(
            name='provincia',
            options={'ordering': ('nome_esteso',), 'verbose_name': 'provincia', 'verbose_name_plural': 'province'},
        ),
        migrations.AlterModelOptions(
            name='regione',
            options={'ordering': ('nome',), 'verbose_name': 'regione', 'verbose_name_plural': 'regioni'},
        ),
        migrations.CreateModel(
            name='Indirizzo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('duf', models.CharField(help_text='Il nome della via/piazza/ecc...', max_length=256, verbose_name='denominazione urbanistica ufficiale')),
                ('civico', models.CharField(max_length=256)),
                ('altro', models.CharField(blank=True, default='', help_text='Es.: interno, scala, appartamento...', max_length=2048)),
                ('cap', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='dati_geo_app.cap')),
                ('comune', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='dati_geo_app.comune')),
                ('dug', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='dati_geo_app.dug', verbose_name='denominazione urbanistica generica')),
            ],
            options={
                'verbose_name': 'indirizzo',
                'verbose_name_plural': 'indirizzi',
            },
        ),
    ]
