# Generated by Django 6.0.1 on 2026-03-11 13:16

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


class Migration(migrations.Migration):

    dependencies = [
        ('jobs', '0036_alter_profile_whatsapp_number_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='NewsPost',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('slug', models.SlugField(blank=True, max_length=255, unique=True)),
                ('image', models.ImageField(help_text='Featured image (WhatsApp share par dikhegi)', upload_to='news_images/')),
                ('content', ckeditor_uploader.fields.RichTextUploadingField()),
                ('short_description', models.TextField(blank=True, help_text='Badi news ka 2-3 lines mein nichod (Desi Hindi preferred).', max_length=500)),
                ('category', models.CharField(choices=[('overseas', 'Overseas News'), ('government', 'Sarkari Jobs'), ('skills', 'Skill Training'), ('visa', 'Visa Alerts'), ('legal', 'Legal Alerts')], default='overseas', max_length=20)),
                ('source_name', models.CharField(blank=True, help_text='Jaise: Gulf News, Indian Embassy', max_length=100)),
                ('source_url', models.URLField(blank=True, help_text='Asli khabar ka link (Verification ke liye)')),
                ('is_breaking', 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': 'Rojgar News Post',
                'verbose_name_plural': 'Rojgar News Posts',
                'ordering': ['-created_at'],
            },
        ),
    ]
