+# Generated by Django 3.2.12 on 2022-07-14 10:36
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('documents', '0008_book_legimi_id'),
+ ('depot', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='LegimiBookPublish',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('created_at', models.DateTimeField()),
+ ('started_at', models.DateTimeField(blank=True, null=True)),
+ ('finished_at', models.DateTimeField(blank=True, null=True)),
+ ('status', models.PositiveSmallIntegerField(choices=[(0, 'queued'), (10, 'running'), (100, 'done'), (110, 'error')], default=0)),
+ ('error', models.TextField(blank=True)),
+ ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='documents.book')),
+ ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='LegimiChunkPublish',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('book_publish', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='depot.legimibookpublish')),
+ ('change', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='documents.chunkchange')),
+ ],
+ ),
+ ]