# Generated by Django 3.2.11 on 2022-02-03 15:03

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

import cookbook.models


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('cookbook', '0168_add_unit_searchfields'),
    ]

    operations = [
        migrations.CreateModel(
            name='ExportLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type', models.CharField(max_length=32)),
                ('running', models.BooleanField(default=True)),
                ('msg', models.TextField(default='')),
                ('total_recipes', models.IntegerField(default=0)),
                ('exported_recipes', models.IntegerField(default=0)),
                ('cache_duration', models.IntegerField(default=0)),
                ('possibly_not_expired', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('space', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.space')),
            ],
            bases=(models.Model, cookbook.models.PermissionModelMixin),
        ),
    ]
