# Generated by Django 4.1.1 on 2022-12-14 06:42

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


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0035_rename_diplom_contracts_degree_work'),
    ]

    operations = [
        migrations.CreateModel(
            name='Extracts',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.CharField(max_length=5, verbose_name='Номер')),
                ('date', models.DateField(verbose_name='Дата')),
                ('secretary', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='secretary', to='main.emploees', verbose_name='Секретарь')),
                ('speaker', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='speaker', to='main.emploees', verbose_name='Докладчик')),
            ],
            options={
                'verbose_name': 'Выписку',
                'verbose_name_plural': 'Выписки',
            },
        ),
        migrations.AddField(
            model_name='orders',
            name='extract',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='main.extracts', verbose_name='Выписка'),
        ),
    ]
