# Generated by Django 5.1.2 on 2025-12-10 09:24

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


class Migration(migrations.Migration):

    dependencies = [
        ('account', '0033_shopmodel_commission_percent'),
        ('order', '0040_shopordermodel_shoporderitem_shopdailyreport'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='shopordermodel',
            name='address',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.useraddressmodel', verbose_name='آدرس تحویل'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='address_city',
            field=models.CharField(blank=True, max_length=30, verbose_name='شهر'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='address_phone',
            field=models.CharField(blank=True, max_length=11, verbose_name='شماره تماس تحویل گیرنده'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='address_postal_code',
            field=models.CharField(blank=True, max_length=10, verbose_name='کد پستی'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='address_province',
            field=models.CharField(blank=True, max_length=30, verbose_name='استان'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='address_recipient_name',
            field=models.CharField(blank=True, max_length=100, verbose_name='نام تحویل گیرنده'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='address_text',
            field=models.TextField(blank=True, verbose_name='آدرس کامل'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='customer',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='مشتری'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='customer_name',
            field=models.CharField(blank=True, max_length=100, verbose_name='نام مشتری'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='customer_phone',
            field=models.CharField(blank=True, max_length=12, verbose_name='شماره تلفن مشتری'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='is_paid',
            field=models.BooleanField(default=False, verbose_name='وضعیت پرداخت'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='order_created_at',
            field=models.DateTimeField(blank=True, null=True, verbose_name='تاریخ ثبت سفارش اصلی'),
        ),
        migrations.AddField(
            model_name='shopordermodel',
            name='status',
            field=models.CharField(choices=[('ADMIN_PENDING', 'در انتظار تایید'), ('PENDING', 'درحال پردازش'), ('POSTED', 'ارسال شده'), ('RECEIVED', 'تحویل شده'), ('CANCELED', 'لغو شده'), ('REFUNDED', 'مرجوع شده')], default='ADMIN_PENDING', max_length=20, verbose_name='وضعیت سفارش'),
        ),
    ]
