# Generated by Django 4.1.1 on 2022-10-29 13:25

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


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0015_remove_sertificates_student_sertificates_contract'),
    ]

    operations = [
        migrations.CreateModel(
            name='Name_cases',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('genitive', models.CharField(max_length=50, verbose_name='Родительный')),
                ('dative', models.CharField(max_length=50, verbose_name='Дательный')),
            ],
            options={
                'verbose_name': 'Падеж имени',
                'verbose_name_plural': 'Падежи имени',
            },
        ),
        migrations.CreateModel(
            name='Patronymic_cases',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('genitive', models.CharField(max_length=50, verbose_name='Родительный')),
                ('dative', models.CharField(max_length=50, verbose_name='Дательный')),
            ],
            options={
                'verbose_name': 'Падеж отчества',
                'verbose_name_plural': 'Падежи отчества',
            },
        ),
        migrations.CreateModel(
            name='Surname_cases',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('genitive', models.CharField(max_length=50, verbose_name='Родительный')),
                ('dative', models.CharField(max_length=50, verbose_name='Дательный')),
            ],
            options={
                'verbose_name': 'Падеж фамилии',
                'verbose_name_plural': 'Падежи фамилии',
            },
        ),
        migrations.AddField(
            model_name='emploees',
            name='surname_cases',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='main.surname_cases', verbose_name='падежи фамилии'),
        ),
        migrations.AddField(
            model_name='students',
            name='surname_cases',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='main.surname_cases', verbose_name='падежи фамилии'),
        ),
        migrations.AddField(
            model_name='worker',
            name='surname_cases',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='main.surname_cases', verbose_name='падежи фамилии'),
        ),
    ]
