# Generated by Django 5.2.11 on 2026-08-31 12:31

import ckeditor.fields
import django.db.models.deletion
import django_icon_picker.field
import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('catalog_app', '0029_merge_20260727_1857'),
    ]

    operations = [
        migrations.CreateModel(
            name='ContactSubmission',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=100)),
                ('last_name', models.CharField(max_length=100)),
                ('email', models.EmailField(max_length=254)),
                ('subject', models.CharField(max_length=255)),
                ('message', models.TextField()),
                ('submitted_at', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'verbose_name': 'Contact Submission',
                'verbose_name_plural': 'Contact Submissions',
                'ordering': ['-submitted_at'],
            },
        ),
        migrations.CreateModel(
            name='HomePageContent',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('subtitle', models.TextField()),
                ('background_image', models.ImageField(blank=True, null=True, upload_to='homepage/')),
                ('button_text', models.CharField(default='Get Started', max_length=50)),
                ('about_title_start', models.CharField(blank=True, max_length=255, null=True)),
                ('about_title_end', models.CharField(blank=True, max_length=255, null=True)),
                ('about_description', models.TextField(blank=True, null=True)),
                ('services_title_start', models.CharField(blank=True, max_length=255, null=True)),
                ('services_title_end', models.CharField(blank=True, max_length=255, null=True)),
                ('services_description', models.TextField(blank=True, null=True)),
                ('founder_headline_start', models.CharField(blank=True, max_length=255, null=True)),
                ('founder_headline_end', models.CharField(blank=True, max_length=255, null=True)),
                ('founder_title', models.CharField(blank=True, max_length=255, null=True)),
                ('founder_image', models.ImageField(blank=True, null=True, upload_to='homepage/founder/')),
                ('rights_agency_headline_start', models.CharField(blank=True, max_length=255, null=True)),
                ('rights_agency_headline_end', models.CharField(blank=True, max_length=255, null=True)),
                ('rights_agency_description', models.TextField(blank=True, null=True)),
                ('rights_agency_button_text', models.CharField(blank=True, max_length=50, null=True)),
                ('rights_agency_image', models.ImageField(blank=True, null=True, upload_to='homepage/rights_agency/')),
                ('testimonials_title_start', models.CharField(blank=True, max_length=255, null=True)),
                ('testimonials_title_end', models.CharField(blank=True, max_length=255, null=True)),
                ('testimonials_description', models.TextField(blank=True, null=True)),
                ('contact_title_start', models.CharField(blank=True, max_length=255, null=True)),
                ('contact_title_end', models.CharField(blank=True, max_length=255, null=True)),
                ('contact_description', models.TextField(blank=True, null=True)),
                ('contact_email', models.EmailField(blank=True, max_length=254, null=True)),
                ('contact_phone', models.CharField(blank=True, max_length=50, null=True)),
                ('contact_address', models.CharField(blank=True, max_length=255, null=True)),
                ('contact_facebook_url', models.URLField(blank=True, null=True)),
                ('contact_instagram_url', models.URLField(blank=True, null=True)),
                ('contact_linkedin_url', models.URLField(blank=True, null=True)),
                ('contact_twitter_url', models.URLField(blank=True, null=True)),
                ('newsletter_title', models.CharField(blank=True, max_length=255, null=True)),
                ('newsletter_description', models.TextField(blank=True, null=True)),
                ('footer_brand_name', models.CharField(blank=True, max_length=100, null=True)),
                ('footer_description', models.TextField(blank=True, null=True)),
                ('footer_quick_links_title', models.CharField(blank=True, max_length=100, null=True)),
                ('footer_services_title', models.CharField(blank=True, max_length=100, null=True)),
                ('footer_copyright_text', models.TextField(blank=True, null=True)),
                ('is_active', models.BooleanField(default=False, help_text='Check this to make this content active on the home page. Any other active content will be deactivated.')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Home Page Content',
                'verbose_name_plural': 'Home Page Content',
            },
        ),
        migrations.CreateModel(
            name='Subscriber',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('token', models.UUIDField(default=uuid.uuid4, editable=False)),
                ('is_active', models.BooleanField(default=True)),
                ('subscribed_at', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.AlterModelOptions(
            name='book',
            options={'ordering': ['title']},
        ),
        migrations.AlterModelOptions(
            name='category',
            options={'verbose_name': 'Genre', 'verbose_name_plural': 'Genres'},
        ),
        migrations.AddField(
            model_name='author',
            name='email',
            field=models.EmailField(blank=True, help_text='Used to send earnings statements directly to the author.', max_length=254),
        ),
        migrations.AddField(
            model_name='book',
            name='is_featured',
            field=models.BooleanField(default=False, help_text='Featured books will be displayed prominently.'),
        ),
        migrations.AddField(
            model_name='book',
            name='is_listed',
            field=models.BooleanField(default=True, help_text='Uncheck this to hide the book from the public-facing website.'),
        ),
        migrations.AlterField(
            model_name='book',
            name='category',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='books', to='catalog_app.category', verbose_name='Book Genre'),
        ),
        migrations.CreateModel(
            name='FounderParagraph',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.TextField()),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='founder_paragraphs', to='catalog_app.homepagecontent')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='FounderAchievement',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('icon', django_icon_picker.field.IconField(blank=True, max_length=255, null=True)),
                ('number', models.CharField(max_length=50)),
                ('label', models.CharField(max_length=100)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='founder_achievements', to='catalog_app.homepagecontent')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='FooterServiceItem',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=100)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='footer_service_items', to='catalog_app.homepagecontent')),
            ],
            options={
                'verbose_name': 'Footer Service Item',
                'verbose_name_plural': 'Footer Service Items',
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='FooterQuickLink',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=100)),
                ('url', models.CharField(help_text='Internal link (e.g., #about) or external URL.', max_length=255)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='footer_quick_links', to='catalog_app.homepagecontent')),
            ],
            options={
                'verbose_name': 'Footer Quick Link',
                'verbose_name_plural': 'Footer Quick Links',
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='NavigationItem',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.CharField(max_length=100)),
                ('href', models.CharField(help_text='URL or anchor link (e.g., #home, /books).', max_length=255)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='navigation_items', to='catalog_app.homepagecontent')),
            ],
            options={
                'verbose_name': 'Navigation Item',
                'verbose_name_plural': 'Navigation Items',
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='RightsAgencyFeature',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=255)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rights_agency_features', to='catalog_app.homepagecontent')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='Service',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('description', models.TextField()),
                ('icon', django_icon_picker.field.IconField(blank=True, max_length=255, null=True)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='services', to='catalog_app.homepagecontent')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='Newsletter',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('subject', models.CharField(max_length=255)),
                ('content', ckeditor.fields.RichTextField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('sent_at', models.DateTimeField(blank=True, null=True)),
                ('recipients', models.ManyToManyField(related_name='newsletters', to='catalog_app.subscriber')),
            ],
        ),
        migrations.CreateModel(
            name='Testimonial',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quote', models.TextField()),
                ('author', models.CharField(max_length=255)),
                ('title', models.CharField(max_length=255)),
                ('order', models.PositiveIntegerField(default=0)),
                ('homepage_content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='testimonials', to='catalog_app.homepagecontent')),
            ],
            options={
                'ordering': ['order'],
            },
        ),
    ]
