# Generated by Django 3.2.13 on 2022-07-04 09:58

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='CircleCompletion',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('page_key', models.UUIDField()),
                ('page_type', models.CharField(blank=True, default='', max_length=255)),
                ('circle_key', models.UUIDField()),
                ('learning_path_key', models.UUIDField()),
                ('completed', models.BooleanField(default=False)),
                ('json_data', models.JSONField(blank=True, default=dict)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddConstraint(
            model_name='circlecompletion',
            constraint=models.UniqueConstraint(fields=('user', 'page_key'), name='unique_user_page_key'),
        ),
    ]
