# Generated by Django 5.1.1 on 2024-09-19 20:05

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('azienda', '0003_azienda_azienda_azi_partita_d03251_idx'),
    ]

    operations = [
        migrations.CreateModel(
            name='Comunicazione',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mittente', models.CharField(max_length=256, null=True)),
                ('soggetto', models.CharField(max_length=256, null=True)),
                ('corpo', models.CharField(max_length=2048, null=True)),
                ('azienda', models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='azienda.azienda')),
            ],
            options={
                'ordering': ['soggetto'],
                'indexes': [models.Index(fields=['soggetto'], name='comunicazio_soggett_a61f5f_idx')],
                'constraints': [models.UniqueConstraint(fields=('soggetto',), name='unique-comunicazionesoggetto')],
            },
        ),
    ]
