# Generated by Django 5.2.7 on 2025-10-25 16:52

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='cliente',
            name='Scadenza_Documento_Identita',
        ),
        migrations.RemoveField(
            model_name='cliente',
            name='Scadenza_MIFID',
        ),
        migrations.CreateModel(
            name='Attivita',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Data', models.DateField()),
                ('Ora', models.TimeField(blank=True, null=True)),
                ('Tipo', models.CharField(choices=[('Chiamata', 'Chiamata'), ('Riunione', 'Riunione'), ('Email', 'Email'), ('To-Do', 'To-Do'), ('Avviso Cedola', 'Avviso Cedola'), ('Scadenza Obbligazione', 'Scadenza Obbligazione'), ('Revisione Annuale', 'Revisione Annuale')], max_length=30)),
                ('Stato', models.CharField(choices=[('Pianificato', 'Pianificato'), ('Completato', 'Completato')], default='Pianificato', max_length=20)),
                ('Note', models.TextField(blank=True, null=True)),
                ('cliente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attivita', to='core.cliente')),
            ],
        ),
        migrations.CreateModel(
            name='Documento',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Nome_Documento', models.CharField(max_length=100)),
                ('Tipo', models.CharField(choices=[('Contratto', 'Contratto'), ('KYC', 'KYC'), ('Report', 'Report'), ('Altro', 'Altro')], max_length=20)),
                ('Data_Caricamento', models.DateField(auto_now_add=True)),
                ('Data_di_Scadenza', models.DateField(blank=True, null=True)),
                ('File', models.FileField(upload_to='documenti/')),
                ('Condivisibile', models.BooleanField(default=False)),
                ('cliente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documenti', to='core.cliente')),
            ],
        ),
        migrations.CreateModel(
            name='Portafoglio',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Nome_Portafoglio', models.CharField(max_length=100)),
                ('Profilo_di_Rischio', models.CharField(choices=[('Conservativo', 'Conservativo'), ('Bilanciato', 'Bilanciato'), ('Aggressivo', 'Aggressivo')], max_length=20)),
                ('Composizione_Asset_Allocation', models.TextField(blank=True, null=True)),
                ('Data_Inizio', models.DateField()),
                ('Valore_Iniziale', models.DecimalField(decimal_places=2, max_digits=15)),
                ('Valore_Corrente', models.DecimalField(decimal_places=2, max_digits=15)),
                ('Note', models.TextField(blank=True, null=True)),
                ('cliente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='portafogli', to='core.cliente')),
            ],
        ),
    ]
