# Generated by Django 5.1.2 on 2025-02-04 20:48

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0013_detailmodel_alter_instuckcolors_product_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='InPackItems',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('item_title', models.CharField(max_length=50)),
                ('cover', models.ImageField(upload_to='product_items/', verbose_name='کاور ایتم')),
            ],
            options={
                'verbose_name': 'ایتم داخل پک',
                'verbose_name_plural': 'ایتم های داخل پک',
            },
        ),
        migrations.AlterField(
            model_name='productdetailmodel',
            name='product',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='details', to='product.productmodel', verbose_name='محصول مرتبط'),
        ),
        migrations.AddField(
            model_name='productmodel',
            name='in_pack_items',
            field=models.ManyToManyField(blank=True, to='product.inpackitems', verbose_name='ایتم های داخل پک'),
        ),
    ]
