# 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 = [
        ('core', '0015_modelhistory_manufacturerhistory_and_more'),
        ('project_management', '0004_projectmilestonenotes_projectnotes_projectstatenotes_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='ProjectHistory',
            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='project_management.project', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Project History',
                'verbose_name_plural': 'Project History',
                'db_table': 'project_management_project_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='ProjectMilestoneHistory',
            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='project_management.projectmilestone', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Project Milestone History',
                'verbose_name_plural': 'Project Milestone History',
                'db_table': 'project_management_projectmilestone_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='ProjectStateHistory',
            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='project_management.projectstate', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Project State History',
                'verbose_name_plural': 'Project State History',
                'db_table': 'project_management_projectstate_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
        migrations.CreateModel(
            name='ProjectTypeHistory',
            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='project_management.projecttype', verbose_name='Model')),
            ],
            options={
                'verbose_name': 'Project Type History',
                'verbose_name_plural': 'Project Type History',
                'db_table': 'project_management_projecttype_history',
                'ordering': ['-created'],
            },
            bases=('core.modelhistory',),
        ),
    ]
