# Generated by Django 5.0.6 on 2026-05-01 14:08

import ckeditor_uploader.fields
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('properties', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='LandingPage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(help_text='Internal name', max_length=200)),
                ('slug', models.SlugField(help_text='URL slug — page will live at /p/<slug>/', max_length=120, unique=True)),
                ('headline', models.CharField(max_length=255)),
                ('subheadline', models.CharField(blank=True, max_length=500)),
                ('hero_image', models.ImageField(blank=True, null=True, upload_to='landing/')),
                ('cta_text', models.CharField(default='Get In Touch', max_length=80)),
                ('cta_phone', models.CharField(blank=True, help_text='Optional click-to-call number', max_length=30)),
                ('body_html', ckeditor_uploader.fields.RichTextUploadingField(blank=True)),
                ('show_inquiry_form', models.BooleanField(default=True)),
                ('show_chatbot', models.BooleanField(default=True)),
                ('is_published', models.BooleanField(default=True)),
                ('theme_color', models.CharField(default='#1a8754', help_text='Hex color for accents, e.g. #1a8754', max_length=20)),
                ('meta_title', models.CharField(blank=True, max_length=200)),
                ('meta_description', models.CharField(blank=True, max_length=300)),
                ('views_count', models.PositiveIntegerField(default=0)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='landing_pages', to=settings.AUTH_USER_MODEL)),
                ('properties', models.ManyToManyField(blank=True, related_name='landing_pages', to='properties.property')),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
