You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
# Generated by Django 5.1.4 on 2025-01-08 14:37
|
|
|
|
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='GoodsReception',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('quantity', models.PositiveIntegerField(verbose_name='Количество')),
|
|
('quality_check', models.BooleanField(verbose_name='Проверка качества')),
|
|
('shelf_life_valid', models.BooleanField(verbose_name='Срок годности соответствует')),
|
|
('is_accepted', models.BooleanField(default=False, verbose_name='Принят')),
|
|
('rejection_reason', models.TextField(blank=True, null=True, verbose_name='Причина отклонения')),
|
|
('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product_directory.product', verbose_name='Товар')),
|
|
],
|
|
),
|
|
]
|