# Generated by Django 4.2.1 on 2023-10-12 12:11

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


class Migration(migrations.Migration):
    dependencies = [
        ("receipe", "0053_nutrient_nutrientarticle_article_nutrients"),
    ]

    operations = [
        migrations.CreateModel(
            name="NutrientAlias",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "name",
                    models.CharField(
                        max_length=50, unique=True, verbose_name="nutrient alias name"
                    ),
                ),
                (
                    "nutrient",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="receipe.nutrient",
                        verbose_name="Nutrient",
                    ),
                ),
            ],
        ),
    ]
