1 # Generated by Django 4.0.8 on 2025-05-07 13:21
3 from django.conf import settings
4 from django.db import migrations, models
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
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'),
17 migrations.CreateModel(
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)),
36 'unique_together': {('user', 'book')},