# Generated by Django 5.0.7 on 2024-08-05 14:24

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('azienda', '0003_azienda_azienda_azi_partita_d03251_idx'),
        ('documento', '0010_documento_azienda'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Causale',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('causale', models.CharField(default='', max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='Attivita',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data', models.DateTimeField(auto_now=True)),
                ('amministratore', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
                ('azienda', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='azienda.azienda')),
                ('documento', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='documento.documento')),
            ],
        ),
    ]
