# Generated by Django 5.0.10 on 2026-01-22 10:09

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('products', '0001_add_sales_unit_to_kititem'),
    ]

    operations = [
        migrations.CreateModel(
            name='BouquetName',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, unique=True, verbose_name='Название букета')),
                ('language', models.CharField(default='russian', max_length=10, verbose_name='Язык')),
                ('is_approved', models.BooleanField(default=False, verbose_name='Одобрено для использования')),
                ('usage_count', models.PositiveIntegerField(default=0, verbose_name='Количество использований')),
                ('generated_at', models.DateTimeField(auto_now_add=True, verbose_name='Дата генерации')),
                ('approved_at', models.DateTimeField(blank=True, null=True, verbose_name='Дата одобрения')),
                ('color_tags', models.ManyToManyField(blank=True, related_name='bouquet_names_by_color', to='products.producttag', verbose_name='Цветные теги')),
                ('occasion_tags', models.ManyToManyField(blank=True, related_name='bouquet_names_by_occasion', to='products.producttag', verbose_name='Теги по поводу')),
                ('style_tags', models.ManyToManyField(blank=True, related_name='bouquet_names_by_style', to='products.producttag', verbose_name='Теги по стилю')),
            ],
            options={
                'verbose_name': 'Название букета',
                'verbose_name_plural': 'Названия букетов',
                'indexes': [models.Index(fields=['language', 'is_approved'], name='products_bo_languag_8622de_idx'), models.Index(fields=['usage_count'], name='products_bo_usage_c_4ce5b8_idx')],
            },
        ),
    ]
