# Generated by Django 4.2.28 on 2026-02-24 10:59

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('inventory', '0004_product_overstock_alert'),
    ]

    operations = [
        migrations.CreateModel(
            name='UserStoreAssignment',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True)),
                ('assigned_at', models.DateTimeField(auto_now_add=True)),
                ('location', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='assigned_users', to='inventory.stocklocation')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='store_assignment', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'User Store Assignment',
                'verbose_name_plural': 'User Store Assignments',
            },
        ),
    ]
