# Generated by Django 4.1.1 on 2022-12-10 17:33

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


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0032_emploees_department'),
    ]

    operations = [
        migrations.CreateModel(
            name='Passport_department',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=7, verbose_name='Код подразделения')),
                ('title', models.CharField(max_length=255, verbose_name='Наименование подразделения')),
            ],
        ),
        migrations.AlterModelOptions(
            name='diplomas',
            options={'verbose_name': 'Полученный Диплом', 'verbose_name_plural': 'Полученные Дипломы'},
        ),
        migrations.DeleteModel(
            name='Worker',
        ),
        migrations.AddField(
            model_name='passports',
            name='passport_department',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='main.passport_department', verbose_name='Код подразделения'),
        ),
    ]
