Добавлена миграция для поля original_order_item_id в Reservation

Поле для отслеживания связи резервов с исходными позициями заказа
This commit is contained in:
2026-01-05 21:29:56 +03:00
parent 541ea5e561
commit 9e43f738a4

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.0.10 on 2026-01-05 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0004_add_reserved_status_to_showcaseitem'),
]
operations = [
migrations.AddField(
model_name='reservation',
name='original_order_item_id',
field=models.IntegerField(blank=True, db_index=True, help_text='Для витринных резервов: ID OrderItem, которому изначально принадлежал резерв (защита от кражи)', null=True, verbose_name='ID исходной позиции заказа'),
),
]