# Generated by Django 6.0.4 on 2026-06-21 07:11

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('product_module', '0003_productcomment'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='productcomment',
            options={'ordering': ['-create_date'], 'verbose_name': 'نظر محصول', 'verbose_name_plural': 'نظرات محصولات'},
        ),
        migrations.AddField(
            model_name='productcomment',
            name='parent',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='replies', to='product_module.productcomment', verbose_name='پاسخ'),
        ),
        migrations.AddField(
            model_name='productcomment',
            name='rating',
            field=models.PositiveSmallIntegerField(default=5, verbose_name='امتیاز'),
        ),
        migrations.AlterField(
            model_name='productcomment',
            name='is_active',
            field=models.BooleanField(default=False, verbose_name='تایید شده'),
        ),
        migrations.AlterField(
            model_name='productcomment',
            name='product',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='product_module.product', verbose_name='محصول'),
        ),
    ]
