# Generated by Django 5.2.11 on 2026-04-21 09:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0015_add_variant_to_order_item_and_variant_branch_stock'),
        ('sales', '0015_posorder_source_alter_posorder_cashier_and_more'),
    ]

    operations = [
        migrations.AddField(
            model_name='posorderitem',
            name='variant',
            field=models.ForeignKey(blank=True, help_text='Specific product variant sold (null = base product)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='order_items', to='inventory.productvariant'),
        ),
        migrations.AlterField(
            model_name='posorderitem',
            name='product_name',
            field=models.CharField(blank=True, help_text='Snapshot of product/variant name at time of sale.', max_length=200),
        ),
    ]
