# Generated by Django 5.1.2 on 2025-02-04 19:55

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


class Migration(migrations.Migration):

    dependencies = [
        ('blog', '0002_alter_blogmodel_options_alter_blogmodel_cover_image'),
        ('product', '0013_detailmodel_alter_instuckcolors_product_and_more'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AlterField(
            model_name='blogmodel',
            name='author',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blogs', to=settings.AUTH_USER_MODEL, verbose_name='نویسنده'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='category',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='blogs', to='product.subcategorymodel', verbose_name='دسته بندی'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='content',
            field=models.TextField(verbose_name='محتوا'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='cover_image',
            field=models.ImageField(blank=True, upload_to='blog_covers/', verbose_name='کاور بلاگ'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='created_at',
            field=models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='ساخته شده در'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='is_published',
            field=models.BooleanField(default=False, verbose_name='انتشار در وبسایت'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='meta_description',
            field=models.CharField(help_text='این فیلد را حتما پر کنید', max_length=300, verbose_name='متا دیسکریپشن'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='meta_keywords',
            field=models.CharField(help_text='این فیلد را حتما پر کنید', max_length=300, verbose_name='متا کیورد'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='summery',
            field=models.TextField(verbose_name='خلاصه'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='title',
            field=models.CharField(max_length=200, verbose_name='عنوان'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='updated_at',
            field=models.DateTimeField(auto_now=True, verbose_name='ابدیت شده در'),
        ),
        migrations.AlterField(
            model_name='blogmodel',
            name='views',
            field=models.PositiveIntegerField(default=0, verbose_name='بازدید'),
        ),
    ]
