# Generated by Django 5.1.9 on 2025-06-03 22:06

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


class Migration(migrations.Migration):

    dependencies = [
        ("assistance", "0007_remove_knowledgebase_is_global_and_more"),
        ("core", "0027_centurionmodelnote"),
    ]

    operations = [
        migrations.CreateModel(
            name="KnowledgeBaseAuditHistory",
            fields=[
                (
                    "centurionaudit_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionaudit",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this history belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="audit_history",
                        to="assistance.knowledgebase",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Knowledge Base History",
                "verbose_name_plural": "Knowledge Base Histories",
                "db_table": "assistance_knowledgebase_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit", models.Model),
        ),
        migrations.CreateModel(
            name="KnowledgeBaseCenturionModelNote",
            fields=[
                (
                    "centurionmodelnote_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="core.centurionmodelnote",
                    ),
                ),
                (
                    "model",
                    models.ForeignKey(
                        help_text="Model this note belongs to",
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="+",
                        to="assistance.knowledgebase",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "Knowledge Base Note",
                "verbose_name_plural": "Knowledge Base Notes",
                "db_table": "assistance_knowledgebase_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote", models.Model),
        ),
    ]
