# Generated by Django 4.0.3 on 2022-07-09 12:54

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


class Migration(migrations.Migration):

    dependencies = [
        ('receipe', '0007_rename_vitamin_b1munit_nutritionalvalues_vitamin_b1unit'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='category',
            name='parent',
        ),
        migrations.AddField(
            model_name='category',
            name='level',
            field=models.CharField(default='0', max_length=100),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='packagingarticle',
            name='article_id',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='receipe.article', verbose_name='article id'),
        ),
        migrations.AlterField(
            model_name='packagingarticle',
            name='packaging_id',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='receipe.packaging', verbose_name='packaging id'),
        ),
        migrations.AddIndex(
            model_name='category',
            index=models.Index(fields=['name'], name='receipe_cat_name_e79a8c_idx'),
        ),
        migrations.AddIndex(
            model_name='category',
            index=models.Index(fields=['level'], name='receipe_cat_level_4234e7_idx'),
        ),
    ]
