Phone not required.
[wolnelektury.git] / src / catalogue / migrations / 0044_snippet.py
1 # Generated by Django 4.0.8 on 2023-05-29 09:06
2
3 import django.contrib.postgres.search
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', '0043_alter_bookmedia_duration_alter_bookmedia_type'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='Snippet',
17             fields=[
18                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19                 ('sec', models.IntegerField()),
20                 ('text', models.TextField()),
21                 ('search_vector', django.contrib.postgres.search.SearchVectorField()),
22                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.book')),
23             ],
24         ),
25     ]