|
|
@@ -1,5 +1,6 @@
|
|
|
-# Generated by Django 5.1.1 on 2024-09-19 19:55
|
|
|
+# Generated by Django 5.1.1 on 2024-09-19 20:05
|
|
|
|
|
|
+import django.db.models.deletion
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
@@ -8,6 +9,7 @@ class Migration(migrations.Migration):
|
|
|
initial = True
|
|
|
|
|
|
dependencies = [
|
|
|
+ ('azienda', '0003_azienda_azienda_azi_partita_d03251_idx'),
|
|
|
]
|
|
|
|
|
|
operations = [
|
|
|
@@ -18,11 +20,12 @@ class Migration(migrations.Migration):
|
|
|
('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={
|
|
|
- 'db_table': 'Comunicazione',
|
|
|
'ordering': ['soggetto'],
|
|
|
- 'managed': False,
|
|
|
+ 'indexes': [models.Index(fields=['soggetto'], name='comunicazio_soggett_a61f5f_idx')],
|
|
|
+ 'constraints': [models.UniqueConstraint(fields=('soggetto',), name='unique-comunicazionesoggetto')],
|
|
|
},
|
|
|
),
|
|
|
]
|