# Generated by Django 4.0.3 on 2023-03-03 15:21

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


class Migration(migrations.Migration):

    dependencies = [
        ('receipe', '0034_alter_ingredients_additive_alter_ingredients_enumber'),
    ]

    operations = [
        migrations.CreateModel(
            name='IngredientsArticle',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('position', models.PositiveIntegerField(verbose_name='Position')),
            ],
        ),
        migrations.AlterField(
            model_name='article',
            name='ingredients',
            field=models.ManyToManyField(blank=True, through='receipe.IngredientsArticle', to='receipe.ingredients'),
        ),
        migrations.AddField(
            model_name='ingredientsarticle',
            name='article',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='receipe.article', verbose_name='article'),
        ),
        migrations.AddField(
            model_name='ingredientsarticle',
            name='ingredient',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='receipe.ingredients', verbose_name='Ingredient'),
        ),
    ]
