# 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 = [
        ('access', '0003_alter_team_organization_organizationnotes_teamnotes'),
        ('core', '0015_modelhistory_manufacturerhistory_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='OrganizationHistory',
            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='access.organization', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Organization History',
                'verbose_name_plural': 'Organization History',
                'db_table': 'access_organization_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='TeamHistory',
            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='access.team', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Team History',
                'verbose_name_plural': 'Team History',
                'db_table': 'access_team_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
    ]
