Phone not required.
[wolnelektury.git] / src / references / migrations / 0001_initial.py
1 # Generated by Django 2.2.16 on 2020-11-08 15:38
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     initial = True
10
11     dependencies = [
12         ('catalogue', '0030_collection_role'),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='Entity',
18             fields=[
19                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20                 ('uri', models.CharField(db_index=True, max_length=255, unique=True)),
21                 ('label', models.CharField(blank=True, max_length=1024)),
22                 ('description', models.CharField(blank=True, max_length=2048)),
23                 ('wikipedia_link', models.CharField(blank=True, max_length=1024)),
24                 ('lat', models.FloatField(blank=True, null=True)),
25                 ('lon', models.FloatField(blank=True, null=True)),
26                 ('images', models.TextField(blank=True)),
27             ],
28         ),
29         migrations.CreateModel(
30             name='Reference',
31             fields=[
32                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
33                 ('first_section', models.CharField(max_length=255)),
34                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
35                 ('entity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='references.Entity')),
36             ],
37             options={
38                 'unique_together': {('book', 'entity')},
39             },
40         ),
41     ]