Optimization.
[redakcja.git] / src / catalogue / migrations / 0042_bookmonthlystats.py
1 # Generated by Django 4.0.6 on 2022-12-15 11:05
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', '0041_author_genitive_epoch_adjective_feminine_singular_and_more'),
11     ]
12
13     operations = [
14         migrations.CreateModel(
15             name='BookMonthlyStats',
16             fields=[
17                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18                 ('date', models.DateField()),
19                 ('views_reader', models.IntegerField(default=0)),
20                 ('views_page', models.IntegerField(default=0)),
21                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.book')),
22             ],
23         ),
24     ]