text: # Generated by Django 2.2 on 2019-06-05 16:04
  
  from django.db import migrations, models
  import django.db.models.deletion
  import main_app.models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('main_app', '0012_auto_20190604_1758'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Recipe',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=80)),
                  ('description', models.TextField()),
                  ('recipe_text', models.TextField()),
                  ('image', models.ImageField(blank=True, null=True, upload_to=main_app.models.upload_location)),
                  ('accepted', models.BooleanField(default=False)),
              ],
          ),
          migrations.CreateModel(
              name='RecipeIngredient',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('quantity', models.IntegerField()),
                  ('ingredient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main_app.Ingredient')),
                  ('recipe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main_app.Recipe')),
                  ('unit', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='main_app.Unit')),
              ],
          ),
          migrations.AddField(
              model_name='recipe',
              name='ingredients',
              field=models.ManyToManyField(through='main_app.RecipeIngredient', to='main_app.Ingredient'),
          ),
          migrations.AddField(
              model_name='recipe',
              name='owner',
              field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='accounts.User'),
          ),
          migrations.AddField(
              model_name='recipe',
              name='tools',
              field=models.ManyToManyField(to='main_app.CookingTool'),
          ),
      ]
  