X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c8d364d4d3331d03a079d200887e5462279fd875..a3f3fa4837a3364acc1d69f5f17b5153ca3af057:/src/stats/migrations/0005_dayvisits.py?ds=inline diff --git a/src/stats/migrations/0005_dayvisits.py b/src/stats/migrations/0005_dayvisits.py new file mode 100644 index 000000000..0ebf03a07 --- /dev/null +++ b/src/stats/migrations/0005_dayvisits.py @@ -0,0 +1,28 @@ +# Generated by Django 2.2.19 on 2021-06-14 08:56 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('catalogue', '0032_collection_listed'), + ('stats', '0004_auto_20210601_1303'), + ] + + operations = [ + migrations.CreateModel( + name='DayVisits', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('date', models.DateField()), + ('views', models.IntegerField()), + ('unique_views', models.IntegerField()), + ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')), + ], + options={ + 'abstract': False, + }, + ), + ]