# Generated by Django 3.0.8 on 2020-08-13 20:19

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


class Migration(migrations.Migration):

    dependencies = [
        ('recipes', '0004_auto_20200813_0848'),
    ]

    operations = [
        migrations.CreateModel(
            name='Unit',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.RemoveField(
            model_name='ingredient',
            name='recipes',
        ),
        migrations.CreateModel(
            name='IngredientAmount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.DecimalField(decimal_places=2, max_digits=4)),
                ('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Ingredient')),
                ('recipe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Recipe')),
                ('unit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Unit')),
            ],
        ),
        migrations.AddField(
            model_name='recipe',
            name='ingredient_amounts',
            field=models.ManyToManyField(through='recipes.IngredientAmount', to='recipes.Ingredient'),
        ),
    ]

136c32025878eac3df6e164d74ffdc2f376ec3e8
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    dependencies = [('recipes', '0004_auto_20200813_0848')]
    operations = [migrations.CreateModel(name='Unit', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=100))],
        options={'ordering': ['name']}), migrations.RemoveField(model_name=
        'ingredient', name='recipes'), migrations.CreateModel(name=
        'IngredientAmount', fields=[('id', models.AutoField(auto_created=
        True, primary_key=True, serialize=False, verbose_name='ID')), (
        'quantity', models.DecimalField(decimal_places=2, max_digits=4)), (
        'ingredient', models.ForeignKey(on_delete=django.db.models.deletion
        .CASCADE, to='recipes.Ingredient')), ('recipe', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='recipes.Recipe')),
        ('unit', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to='recipes.Unit'))]), migrations.AddField(model_name=
        'recipe', name='ingredient_amounts', field=models.ManyToManyField(
        through='recipes.IngredientAmount', to='recipes.Ingredient'))]

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


class Migration(migrations.Migration):
    dependencies = [('recipes', '0004_auto_20200813_0848')]
    operations = [migrations.CreateModel(name='Unit', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=100))],
        options={'ordering': ['name']}), migrations.RemoveField(model_name=
        'ingredient', name='recipes'), migrations.CreateModel(name=
        'IngredientAmount', fields=[('id', models.AutoField(auto_created=
        True, primary_key=True, serialize=False, verbose_name='ID')), (
        'quantity', models.DecimalField(decimal_places=2, max_digits=4)), (
        'ingredient', models.ForeignKey(on_delete=django.db.models.deletion
        .CASCADE, to='recipes.Ingredient')), ('recipe', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='recipes.Recipe')),
        ('unit', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to='recipes.Unit'))]), migrations.AddField(model_name=
        'recipe', name='ingredient_amounts', field=models.ManyToManyField(
        through='recipes.IngredientAmount', to='recipes.Ingredient'))]

# Generated by Django 3.0.8 on 2020-08-13 20:19

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


class Migration(migrations.Migration):

    dependencies = [
        ('recipes', '0004_auto_20200813_0848'),
    ]

    operations = [
        migrations.CreateModel(
            name='Unit',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.RemoveField(
            model_name='ingredient',
            name='recipes',
        ),
        migrations.CreateModel(
            name='IngredientAmount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.DecimalField(decimal_places=2, max_digits=4)),
                ('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Ingredient')),
                ('recipe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Recipe')),
                ('unit', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Unit')),
            ],
        ),
        migrations.AddField(
            model_name='recipe',
            name='ingredient_amounts',
            field=models.ManyToManyField(through='recipes.IngredientAmount', to='recipes.Ingredient'),
        ),
    ]
