# Generated by Django 5.1.2 on 2025-02-11 19:19

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0021_remove_productmodel_in_pack_items_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='ProductImageModel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30, verbose_name='نام عکس')),
                ('image', models.ImageField(upload_to='product_images/')),
            ],
        ),
        migrations.RemoveField(
            model_name='attributevalue',
            name='color',
        ),
        migrations.RemoveField(
            model_name='attributevalue',
            name='image',
        ),
        migrations.RemoveField(
            model_name='attributevalue',
            name='video',
        ),
        migrations.AddField(
            model_name='productvariant',
            name='color',
            field=models.CharField(blank=True, max_length=7, null=True, verbose_name='رنک'),
        ),
        migrations.AddField(
            model_name='productvariant',
            name='video',
            field=models.FileField(blank=True, null=True, upload_to='product_videos/', verbose_name='ویدیو'),
        ),
        migrations.AddField(
            model_name='productvariant',
            name='images',
            field=models.ManyToManyField(to='product.productimagemodel', verbose_name='عکس ها'),
        ),
    ]
