# Generated by Django 5.0.6 on 2024-05-10 12:27

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


class Migration(migrations.Migration):

    dependencies = [
        ("eggs", "0026_market_debt_paid_market_debt_unpaid"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="orderitems",
            name="product_id",
        ),
        migrations.AddField(
            model_name="orderitems",
            name="group_id",
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.CASCADE,
                to="eggs.group",
            ),
            preserve_default=False,
        ),
        migrations.CreateModel(
            name="Debt",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "debt_price",
                    models.DecimalField(decimal_places=2, max_digits=10),
                ),
                (
                    "market",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="eggs.market",
                    ),
                ),
            ],
        ),
    ]
