+# Generated by Django 4.1.9 on 2024-10-15 13:53
+
+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),
+ ("catalogue", "0054_book_cover"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="book",
+ name="parent",
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ to="catalogue.book",
+ ),
+ ),
+ migrations.AddField(
+ model_name="book",
+ name="parent_number",
+ field=models.IntegerField(blank=True, null=True),
+ ),
+ migrations.CreateModel(
+ name="EditorNote",
+ fields=[
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("created_at", models.DateTimeField(auto_now_add=True)),
+ ("changed_at", models.DateTimeField(auto_now=True)),
+ ("note", models.TextField(blank=True)),
+ (
+ "rate",
+ models.IntegerField(
+ choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)], default=3
+ ),
+ ),
+ (
+ "book",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE, to="catalogue.book"
+ ),
+ ),
+ (
+ "user",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ to=settings.AUTH_USER_MODEL,
+ ),
+ ),
+ ],
+ ),
+ ]