# Generated by Django 6.0.1 on 2026-03-12 20:02

import ckeditor_uploader.fields
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BlogCategory',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('slug', models.SlugField(unique=True)),
                ('icon', models.CharField(default='fa-book', help_text='FontAwesome icon class (e.g., fa-passport)', max_length=50)),
            ],
            options={
                'verbose_name_plural': 'Blog Categories',
            },
        ),
        migrations.CreateModel(
            name='BlogPost',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(help_text='SEO Friendly Title (e.g., How to apply for Russia Visa)', max_length=255)),
                ('slug', models.SlugField(blank=True, max_length=255, unique=True)),
                ('author', models.CharField(default='Videsh Chalo Expert Panel', max_length=100)),
                ('category', models.CharField(choices=[('visa', 'Visa Guides'), ('living', 'Living Standards'), ('checklist', 'Immigration Checklist'), ('embassy', 'Embassy Updates'), ('general', 'General Guidelines')], default='general', max_length=20)),
                ('featured_image', models.ImageField(help_text='Premium quality image for the guide', upload_to='blog_images/')),
                ('featured_image_alt', models.CharField(blank=True, help_text='Image ke liye SEO alt text (Google Image search ke liye zaroori)', max_length=255)),
                ('content', ckeditor_uploader.fields.RichTextUploadingField()),
                ('reading_time', models.PositiveIntegerField(help_text='Minutes mein batayein (e.g., 5)')),
                ('short_summary', models.TextField(help_text='User ko attract karne ke liye chota nichod', max_length=300)),
                ('meta_title', models.CharField(blank=True, max_length=255)),
                ('meta_description', models.TextField(blank=True, max_length=160)),
                ('meta_keywords', models.CharField(blank=True, help_text='Comma se separate karein', max_length=255)),
                ('is_published', models.BooleanField(default=False)),
                ('views_count', models.PositiveIntegerField(default=0)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Gyan Kendra Guide',
                'verbose_name_plural': 'Gyan Kendra Guides',
                'ordering': ['-created_at'],
            },
        ),
    ]
