# Generated by Django 4.2.14 on 2025-03-17 22:21

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


class Migration(migrations.Migration):

    dependencies = [
        ("base", "0018_merge_20250307_1944"),
        ("inventoryreports", "0001_initial"),
    ]

    operations = [
        migrations.RenameField(
            model_name="inventoryreportinventorylisting",
            old_name="continuing_date_time",
            new_name="counting_date_time",
        ),
        migrations.AddField(
            model_name="inventoryreportinventorylisting",
            name="item",
            field=models.ManyToManyField(
                blank=True,
                related_name="inventory_report_inventory_listing",
                to="inventoryreports.inventoryreportinventorylistingitemitemreference",
            ),
        ),
        migrations.CreateModel(
            name="InventoryReportInventoryListingItemItemCodeableReference",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                (
                    "concept",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.DO_NOTHING,
                        related_name="inventory_report_inventory_listing_item_item_codeable_reference_concept",
                        to="base.codeableconcept",
                    ),
                ),
                (
                    "reference",
                    models.ForeignKey(
                        null=True,
                        on_delete=django.db.models.deletion.DO_NOTHING,
                        related_name="inventory_report_inventory_listing_item_item_codeable_reference_reference",
                        to="inventoryreports.inventoryreportinventorylistingitemitemreference",
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
        ),
        migrations.AlterField(
            model_name="inventoryreportinventorylistingitem",
            name="item",
            field=models.ManyToManyField(
                blank=True,
                related_name="inventory_report_inventory_listing_item",
                to="inventoryreports.inventoryreportinventorylistingitemitemcodeablereference",
            ),
        ),
    ]
