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.

30 lines
1.6 KiB

# Generated by Django 5.1.4 on 2025-01-08 14:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255, verbose_name='Наименование товара')),
('barcode', models.CharField(max_length=50, unique=True, verbose_name='Штрих-код')),
('shelf_life_days', models.PositiveIntegerField(verbose_name='Срок годности (дни)')),
('dimensions', models.CharField(max_length=255, verbose_name='Размеры')),
('unit_of_measure', models.CharField(max_length=50, verbose_name='Единицы измерения')),
('manufacturer', models.CharField(max_length=255, verbose_name='Производитель')),
('category', models.CharField(choices=[('Food', 'Продукты'), ('Electronics', 'Электроника'), ('Clothing', 'Одежда'), ('Other', 'Другое')], max_length=50, verbose_name='Категория')),
('storage_temperature', models.CharField(max_length=50, verbose_name='Температурные условия хранения')),
('promotion', models.CharField(blank=True, choices=[('1+1', '1+1'), ('2+1', '2+1')], max_length=10, null=True, verbose_name='Акция')),
],
),
]