+# Generated by Django 3.0.4 on 2020-03-22 23:17
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('catalogue', '0005_auto_20200322_2114'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Author',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=255)),
+ ('year_of_death', models.SmallIntegerField(blank=True, null=True)),
+ ('status', models.PositiveSmallIntegerField(blank=True, choices=[('alive', 'Alive'), ('dead', 'Dead'), ('long-dead', 'Long dead'), ('unknown', 'Unknown')], null=True)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Book',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('uri', models.CharField(max_length=255)),
+ ('title', models.CharField(max_length=255)),
+ ('language', models.CharField(max_length=3)),
+ ('scans_source', models.CharField(blank=True, max_length=255)),
+ ('text_source', models.CharField(blank=True, max_length=255)),
+ ('notes', models.TextField(blank=True)),
+ ('priority', models.PositiveSmallIntegerField(choices=[(0, 'Low'), (1, 'Medium'), (2, 'High')], default=0)),
+ ('authors', models.ManyToManyField(to='catalogue.Author')),
+ ('based_on', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='translation', to='catalogue.Book')),
+ ('translator', models.ManyToManyField(related_name='translated_book_set', related_query_name='translated_book', to='catalogue.Author')),
+ ],
+ ),
+ ]