Merge remote-tracking branch 'zawadzki/new-design'
[wolnelektury.git] / src / stats / migrations / 0005_dayvisits.py
1 # Generated by Django 2.2.19 on 2021-06-14 08:56
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('catalogue', '0032_collection_listed'),
11         ('stats', '0004_auto_20210601_1303'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='DayVisits',
17             fields=[
18                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19                 ('date', models.DateField()),
20                 ('views', models.IntegerField()),
21                 ('unique_views', models.IntegerField()),
22                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
23             ],
24             options={
25                 'abstract': False,
26             },
27         ),
28     ]