Preliminary support for animations.
[wolnelektury.git] / src / api / migrations / 0003_bookuserdata.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import migrations, models
5 import django.db.models.deletion
6 from django.conf import settings
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13         ('catalogue', '0024_auto_20180510_1407'),
14         ('api', '0002_auto_20151221_1225'),
15     ]
16
17     operations = [
18         migrations.CreateModel(
19             name='BookUserData',
20             fields=[
21                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
22                 ('complete', models.BooleanField(default=False)),
23                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
24                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
25             ],
26         ),
27     ]