# Generated by Django 4.1.1 on 2022-09-20 15:20

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


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0002_contracts'),
    ]

    operations = [
        migrations.AddField(
            model_name='contracts',
            name='client',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='main.students', verbose_name='Клиент'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='emploees',
            name='name_genitive',
            field=models.CharField(blank=True, max_length=50, verbose_name='Имя в родительном'),
        ),
        migrations.AddField(
            model_name='emploees',
            name='patronymic_genitive',
            field=models.CharField(blank=True, max_length=50, verbose_name='Отчество в родительном'),
        ),
        migrations.AddField(
            model_name='emploees',
            name='surname_genitive',
            field=models.CharField(blank=True, max_length=50, verbose_name='Фамилия в родительном'),
        ),
        migrations.AlterField(
            model_name='emploees',
            name='group',
            field=models.ManyToManyField(blank=True, to='main.groups', verbose_name='Группы'),
        ),
        migrations.AlterField(
            model_name='emploees',
            name='photo',
            field=models.ImageField(blank=True, upload_to='photos/%Y/%m/%d/', verbose_name='Фото'),
        ),
        migrations.CreateModel(
            name='Structures',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('warrant', models.CharField(max_length=50, verbose_name='Довереность (№, от)')),
                ('responsible_ido', models.CharField(max_length=50, verbose_name='Ответственный от ИДО')),
                ('responsible_def', models.CharField(max_length=50, verbose_name='Ответственный от ДЭиФ')),
                ('director_ido', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='main.emploees', verbose_name='Директор ИДО')),
            ],
        ),
    ]
