# Generated by Django 3.1.3 on 2020-12-01 14:32

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Ingredient",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name="Recipe",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("title", models.CharField(max_length=100)),
                ("cooking_time", models.CharField(max_length=100)),
                ("image", models.CharField(max_length=255)),
                (
                    "ingredients",
                    models.ManyToManyField(
                        related_name="recipes", to="recipes.Ingredient"
                    ),
                ),
            ],
        ),
    ]
