# Generated by Django 5.1.4 on 2025-01-08 15:13 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('product_directory', '0001_initial'), ] operations = [ migrations.CreateModel( name='Stock', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveIntegerField(default=0, verbose_name='Количество')), ('location', models.CharField(max_length=255, verbose_name='Место хранения')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product_directory.product', verbose_name='Товар')), ], options={ 'verbose_name': 'Складская запись', 'verbose_name_plural': 'Складские записи', 'unique_together': {('product', 'location')}, }, ), ]