# Generated by Django 5.1.10 on 2025-08-29 12:26

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


class Migration(migrations.Migration):

    dependencies = [
        ("assistance", "0007_remove_knowledgebase_is_global_and_more"),
        ("auth", "0012_alter_user_first_name_max_length"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="knowledgebaseaudithistory",
            options={
                "managed": True,
                "ordering": ["-created"],
                "verbose_name": "Knowledge Base History",
                "verbose_name_plural": "Knowledge Base Histories",
            },
        ),
        migrations.AlterModelOptions(
            name="knowledgebasecategoryaudithistory",
            options={
                "managed": True,
                "ordering": ["-created"],
                "verbose_name": "Knowledge Base Category History",
                "verbose_name_plural": "Knowledge Base Category Histories",
            },
        ),
        migrations.AlterField(
            model_name="knowledgebase",
            name="responsible_teams",
            field=models.ManyToManyField(
                blank=True,
                help_text="Group(s) whom is considered the articles owner.",
                related_name="+",
                to="auth.group",
                verbose_name="Responsible Group(s)",
            ),
        ),
        migrations.AlterField(
            model_name="knowledgebase",
            name="responsible_user",
            field=models.ForeignKey(
                blank=True,
                help_text="User(s) whom is considered the articles owner.",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="+",
                to=settings.AUTH_USER_MODEL,
                verbose_name="Responsible User",
            ),
        ),
        migrations.AlterField(
            model_name="knowledgebase",
            name="target_team",
            field=models.ManyToManyField(
                blank=True,
                help_text="Group(s) to grant access to the article",
                related_name="+",
                to="auth.group",
                verbose_name="Target Group(s)",
            ),
        ),
        migrations.AlterField(
            model_name="knowledgebasecategory",
            name="target_team",
            field=models.ManyToManyField(
                blank=True,
                help_text="Group(s) to grant access to the article",
                related_name="+",
                to="auth.group",
                verbose_name="Target Group(s)",
            ),
        ),
        migrations.AlterField(
            model_name="knowledgebasecategory",
            name="target_user",
            field=models.ForeignKey(
                blank=True,
                help_text="User(s) to grant access to the article",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to=settings.AUTH_USER_MODEL,
                verbose_name="Target Users(s)",
            ),
        ),
    ]
