# 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 = [
        ('config_management', '0006_configgroupnotes'),
        ('core', '0015_modelhistory_manufacturerhistory_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='ConfigGroupsHistory',
            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='config_management.configgroups', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Config Groups History',
                'verbose_name_plural': 'Config Groups History',
                'db_table': 'config_management_configgroups_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='ConfigGroupHostsHistory',
            fields=[
                ('configgroupshistory_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='config_management.configgroupshistory')),
                ('child_model', models.ForeignKey(help_text='Model this note belongs to', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='history', to='config_management.configgrouphosts', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Config Group Hosts History',
                'verbose_name_plural': 'Config Groups Hosts History',
                'db_table': 'config_management_configgrouphosts_history',
                'ordering': ['-created'],
            },
            bases=('config_management.configgroupshistory',),
        ),
        migrations.CreateModel(
            name='ConfigGroupSoftwareHistory',
            fields=[
                ('configgroupshistory_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='config_management.configgroupshistory')),
                ('child_model', models.ForeignKey(help_text='Model this note belongs to', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='history', to='config_management.configgroupsoftware', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Config Group Software History',
                'verbose_name_plural': 'Config Groups Software History',
                'db_table': 'config_management_configgroupsoftware_history',
                'ordering': ['-created'],
            },
            bases=('config_management.configgroupshistory',),
        ),
    ]
