Add basic login.
[wolnelektury.git] / src / bookmarks / migrations / 0002_quote.py
1 # Generated by Django 4.0.8 on 2024-03-06 11:44
2
3 from django.conf import settings
4 from django.db import migrations, models
5 import django.db.models.deletion
6 import uuid
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         ('catalogue', '0046_alter_book_options_alter_bookmedia_options_and_more'),
13         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
14         ('bookmarks', '0001_initial'),
15     ]
16
17     operations = [
18         migrations.CreateModel(
19             name='Quote',
20             fields=[
21                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
22                 ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
23                 ('created_at', models.DateTimeField(auto_now_add=True)),
24                 ('start_elem', models.CharField(blank=True, max_length=100)),
25                 ('end_elem', models.CharField(blank=True, max_length=100)),
26                 ('start_offset', models.IntegerField(blank=True, null=True)),
27                 ('end_offset', models.IntegerField(blank=True, null=True)),
28                 ('text', models.TextField(blank=True)),
29                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.book')),
30                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
31             ],
32         ),
33     ]