"""
The founder block, so the homepage message stops living in the template.

One new table with a nullable tenant, exactly like the other homepage
singletons. Nothing existing is touched, so this applies to a live database
without taking the site down.

The Panel's lineage, 0051 on top of 0050. mostafaei follows this one.
"""
import django.db.models.deletion
from django.db import migrations, models

import apps.accounts.fields
import django_ckeditor_5.fields


class Migration(migrations.Migration):

    dependencies = [
        ('pages', '0050_why_heading_em'),
        ('tenants', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='HomeFounder',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True,
                    serialize=False, verbose_name='ID')),
                ('section_tag', models.CharField(blank=True, default='',
                    help_text='Small line above the heading.', max_length=80)),
                ('heading', models.CharField(blank=True, default='', max_length=200)),
                ('heading_em', models.CharField(blank=True, default='',
                    help_text='End of the heading, shown in the accent colour.',
                    max_length=200)),
                ('quote', models.TextField(blank=True, default='',
                    help_text='The line in quotation marks above the copy.')),
                ('body', django_ckeditor_5.fields.CKEditor5Field(blank=True)),
                ('photo', apps.accounts.fields.WebPImageField(blank=True, null=True,
                    upload_to='founder/')),
                ('signature', apps.accounts.fields.WebPImageField(blank=True, null=True,
                    upload_to='founder/')),
                ('is_active', models.BooleanField(default=True)),
                ('tenant', models.ForeignKey(blank=True, null=True,
                    on_delete=django.db.models.deletion.CASCADE,
                    related_name='+', to='tenants.tenant')),
            ],
            options={
                'verbose_name': 'Homepage Founder',
                'unique_together': {('tenant',)},
            },
        ),
    ]
