# Generated by Django 5.1.2 on 2025-02-06 19:12

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0015_attributetype_productdetailcategory_attributevalue_and_more'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='productmodel',
            name='currency',
        ),
        migrations.RemoveField(
            model_name='productmodel',
            name='discount',
        ),
        migrations.RemoveField(
            model_name='productmodel',
            name='min_price',
        ),
        migrations.RemoveField(
            model_name='productmodel',
            name='price',
        ),
        migrations.RemoveField(
            model_name='productmodel',
            name='sell',
        ),
        migrations.AddField(
            model_name='productvariant',
            name='currency',
            field=models.CharField(choices=[('dollor', 'دلار'), ('toman', 'تومان'), ('derham', 'درهم')], default='dollor', max_length=20, verbose_name='نوع ارز'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='productvariant',
            name='discount',
            field=models.SmallIntegerField(default=0, verbose_name='تخفیف'),
        ),
        migrations.AddField(
            model_name='productvariant',
            name='min_price',
            field=models.PositiveIntegerField(default=1, help_text='این قیمت برای کف قیمتی محصول در نظر گرفته میشود', verbose_name='قیمت کف'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='productvariant',
            name='sell',
            field=models.IntegerField(default=0, verbose_name='فروش'),
        ),
        migrations.AlterField(
            model_name='attributevalue',
            name='attribute_type',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.attributetype'),
        ),
        migrations.AlterField(
            model_name='attributevalue',
            name='value',
            field=models.CharField(blank=True, max_length=100, null=True, verbose_name='مقدار نوع اتربیوت'),
        ),
        migrations.AlterField(
            model_name='productvariant',
            name='price',
            field=models.PositiveIntegerField(default=0, verbose_name='قیمت'),
        ),
    ]
