# Generated by Django 5.1.9 on 2025-06-09 07:25

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


class Migration(migrations.Migration):

    dependencies = [
        ("core", "0033_alter_ticketcommentcategory_parent_and_more"),
        ("devops", "0019_githubrepositoryaudithistory_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="GitLabRepositoryAuditHistory",
            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="+",
                        to="devops.gitlabrepository",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "GitLab Repository History",
                "verbose_name_plural": "GitLab Repository Histories",
                "db_table": "devops_gitlabrepository_audithistory",
                "managed": True,
            },
            bases=("core.centurionaudit",),
        ),
        migrations.CreateModel(
            name="GitLabRepositoryCenturionModelNote",
            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="devops.gitlabrepository",
                        verbose_name="Model",
                    ),
                ),
            ],
            options={
                "verbose_name": "GitLab Repository Note",
                "verbose_name_plural": "GitLab Repository Notes",
                "db_table": "devops_gitlabrepository_centurionmodelnote",
                "managed": True,
            },
            bases=("core.centurionmodelnote",),
        ),
    ]
