moviewyrm/bookwyrm/migrations/0012_progressupdate.py

59 lines
1.8 KiB
Python
Raw Permalink Normal View History

2020-11-17 07:54:03 +00:00
# Generated by Django 3.0.7 on 2020-11-17 07:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2021-03-08 16:49:10 +00:00
("bookwyrm", "0011_auto_20201113_1727"),
2020-11-17 07:54:03 +00:00
]
operations = [
migrations.CreateModel(
2021-03-08 16:49:10 +00:00
name="ProgressUpdate",
2020-11-17 07:54:03 +00:00
fields=[
2021-03-08 16:49:10 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_date", models.DateTimeField(auto_now_add=True)),
("updated_date", models.DateTimeField(auto_now=True)),
("remote_id", models.CharField(max_length=255, null=True)),
("progress", models.IntegerField()),
(
"mode",
models.CharField(
choices=[("PG", "page"), ("PCT", "percent")],
default="PG",
max_length=3,
),
),
(
"readthrough",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to="bookwyrm.ReadThrough",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.PROTECT,
to=settings.AUTH_USER_MODEL,
),
),
2020-11-17 07:54:03 +00:00
],
options={
2021-03-08 16:49:10 +00:00
"abstract": False,
2020-11-17 07:54:03 +00:00
},
),
]