Add basic login.
[wolnelektury.git] / src / bookmarks / migrations / 0001_initial.py
1 # Generated by Django 4.0.8 on 2024-02-28 11:03
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     initial = True
12
13     dependencies = [
14         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15         ('catalogue', '0046_alter_book_options_alter_bookmedia_options_and_more'),
16     ]
17
18     operations = [
19         migrations.CreateModel(
20             name='Bookmark',
21             fields=[
22                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
23                 ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
24                 ('anchor', models.CharField(blank=True, max_length=100)),
25                 ('created_at', models.DateTimeField(auto_now_add=True)),
26                 ('note', models.TextField(blank=True)),
27                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.book')),
28                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
29             ],
30         ),
31     ]