# 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 = [
        ('companies', '0006_companysettings_auto_print_on_sale_and_more'),
        ('core', '0018_siteconfiguration_alter_promocode_discount_value'),
        ('inventory', '0014_productbundle_productvariant_bundleitem_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='VariantBranchStock',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.IntegerField(default=0)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('branch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='variant_branch_stocks', to='core.branch')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='variant_branch_stocks', to='companies.company')),
                ('variant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='branch_stocks', to='inventory.productvariant')),
            ],
            options={
                'verbose_name': 'Variant Branch Stock',
                'verbose_name_plural': 'Variant Branch Stocks',
                'unique_together': {('branch', 'variant')},
            },
        ),
    ]
