# Generated by Django 5.2.9 on 2025-12-23 15:57

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('tinywiki', '0002_initial_data'),
    ]

    operations = [
        migrations.CreateModel(
            name='SidebarSection',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255, verbose_name='title')),
                ('priority', models.PositiveIntegerField(verbose_name='priority')),
                ('is_visible', models.BooleanField(default=True, verbose_name='is visible')),
            ],
        ),
        migrations.AlterField(
            model_name='page',
            name='status_data',
            field=models.CharField(choices=[('in_progress', 'in progress'), ('draft', 'draft'), ('published', 'published')], default='in_progress', max_length=15, verbose_name='status'),
        ),
        migrations.CreateModel(
            name='SidebarEntry',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255, verbose_name='Title')),
                ('is_visible', models.BooleanField(default=True, verbose_name='is visible')),
                ('priority', models.PositiveIntegerField(verbose_name='Priority')),
                ('wiki_slug', models.CharField(blank=True, max_length=255, null=True, verbose_name='Wiki slug')),
                ('url', models.CharField(blank=True, max_length=512, null=True, verbose_name='Link URL')),
                ('widget', models.TextField(blank=True, null=True, verbose_name='Widget')),
                ('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='tinywiki.sidebarsection', verbose_name='Section')),
            ],
        ),
    ]
