# Generated by Django 5.0.12 on 2025-03-27 12:30

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


class Migration(migrations.Migration):

    dependencies = [
        ("diarios", "0005_delete_pdfdocument"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="diariooficial",
            name="page_content",
        ),
        migrations.CreateModel(
            name="PageDiarioOficial",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("numero", models.PositiveIntegerField()),
                ("conteudo", models.TextField()),
                (
                    "diario",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="paginas",
                        to="diarios.diariooficial",
                    ),
                ),
            ],
            options={
                "verbose_name": "Página de Diário Oficial",
                "verbose_name_plural": "Páginas de Diários Oficiais",
                "unique_together": {("diario", "numero")},
            },
        ),
    ]
