# Generated migration for WordPress sync fields

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('content', '0001_initial'),  # Adjust based on your actual migration
    ]

    operations = [
        migrations.AddField(
            model_name='contentpost',
            name='wordpress_sync_status',
            field=models.CharField(
                choices=[
                    ('pending', 'Pending'),
                    ('syncing', 'Syncing'),
                    ('success', 'Success'),
                    ('failed', 'Failed')
                ],
                default='pending',
                max_length=20,
                help_text='Status of WordPress synchronization'
            ),
        ),
        migrations.AddField(
            model_name='contentpost',
            name='wordpress_post_id',
            field=models.PositiveIntegerField(
                null=True,
                blank=True,
                help_text='WordPress post ID after successful sync'
            ),
        ),
        migrations.AddField(
            model_name='contentpost',
            name='wordpress_post_url',
            field=models.URLField(
                null=True,
                blank=True,
                help_text='WordPress post URL after successful sync'
            ),
        ),
        migrations.AddField(
            model_name='contentpost',
            name='wordpress_sync_attempts',
            field=models.PositiveSmallIntegerField(
                default=0,
                help_text='Number of WordPress sync attempts'
            ),
        ),
        migrations.AddField(
            model_name='contentpost',
            name='last_wordpress_sync',
            field=models.DateTimeField(
                null=True,
                blank=True,
                help_text='Timestamp of last WordPress sync attempt'
            ),
        ),
    ]