fix
[wolnelektury.git] / src / social / migrations / 0018_progress.py
1 # Generated by Django 4.0.8 on 2025-05-07 13:21
2
3 from django.conf import settings
4 from django.db import migrations, models
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         ('catalogue', '0049_book_html_nonotes_file_book_html_nonotes_file_etag_and_more'),
12         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13         ('social', '0017_userconfirmation'),
14     ]
15
16     operations = [
17         migrations.CreateModel(
18             name='Progress',
19             fields=[
20                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
21                 ('created_at', models.DateTimeField(auto_now_add=True)),
22                 ('updated_at', models.DateTimeField(auto_now=True)),
23                 ('last_mode', models.CharField(choices=[('text', 'text'), ('audio', 'audio')], max_length=64)),
24                 ('text_percent', models.FloatField(blank=True, null=True)),
25                 ('text_anchor', models.CharField(blank=True, max_length=64)),
26                 ('audio_percent', models.FloatField(blank=True, null=True)),
27                 ('audio_timestamp', models.FloatField(blank=True, null=True)),
28                 ('implicit_text_percent', models.FloatField(blank=True, null=True)),
29                 ('implicit_text_anchor', models.CharField(blank=True, max_length=64)),
30                 ('implicit_audio_percent', models.FloatField(blank=True, null=True)),
31                 ('implicit_audio_timestamp', models.FloatField(blank=True, null=True)),
32                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.book')),
33                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
34             ],
35             options={
36                 'unique_together': {('user', 'book')},
37             },
38         ),
39     ]