# Generated by Django 5.1.2 on 2025-02-04 20:04

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('amministratore', '0011_delete_amp_delete_permesso'),
        ('azienda', '0017_assegnazioneazienda_crea_azienda_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='Permesso',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=20, null=True)),
                ('descrizione', models.CharField(max_length=128, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='AZP',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('azienda', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='azienda.azienda')),
                ('permesso', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sicurezza.permesso')),
            ],
        ),
        migrations.CreateModel(
            name='AMP',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amministratore', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='amministratore.amministratore')),
                ('permesso', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sicurezza.permesso')),
            ],
        ),
        migrations.CreateModel(
            name='SEP',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('permesso', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sicurezza.permesso')),
                ('sede', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='azienda.sede')),
            ],
        ),
    ]
