# Generated by Django 2.2.22 on 2021-05-11 13:01

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


class Migration(migrations.Migration):

    dependencies = [
        ('objectives', '0014_delete_objectiveprogressstatus'),
        ('books', '0028_snapshot_shared'),
    ]

    operations = [
        migrations.AddField(
            model_name='snapshot',
            name='hidden_objectives',
            field=models.ManyToManyField(related_name='hidden_for_snapshots', to='objectives.Objective'),
        ),
        migrations.CreateModel(
            name='ObjectiveGroupSnapshot',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('hidden', models.BooleanField(default=False)),
                ('objective_group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='objectives.ObjectiveGroup')),
                ('snapshot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='objective_group_snapshots', to='books.Snapshot')),
            ],
        ),
        migrations.AddField(
            model_name='snapshot',
            name='objective_groups',
            field=models.ManyToManyField(through='books.ObjectiveGroupSnapshot', to='objectives.ObjectiveGroup'),
        ),
    ]
