# Generated by Django 5.1.5 on 2025-02-20 13:25

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


class Migration(migrations.Migration):

    dependencies = [
        ('assistance', '0004_alter_knowledgebase_organization_and_more'),
        ('core', '0015_modelhistory_manufacturerhistory_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='KnowledgeBaseCategoryHistory',
            fields=[
                ('modelhistory_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.modelhistory')),
                ('model', models.ForeignKey(help_text='Model this note belongs to', on_delete=django.db.models.deletion.CASCADE, related_name='history', to='assistance.knowledgebasecategory', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Knowledge Base Category History',
                'verbose_name_plural': 'Knowledge Base Category History',
                'db_table': 'assistance_knowledge_base_category_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='KnowledgeBaseHistory',
            fields=[
                ('modelhistory_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.modelhistory')),
                ('model', models.ForeignKey(help_text='Model this note belongs to', on_delete=django.db.models.deletion.CASCADE, related_name='history', to='assistance.knowledgebase', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Knowledge Base History',
                'verbose_name_plural': 'Knowledge Base History',
                'db_table': 'assistance_knowledge_base_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
    ]
