A migration.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 31 May 2021 13:38:35 +0000 (15:38 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 31 May 2021 13:38:35 +0000 (15:38 +0200)
src/stats/migrations/0001_initial.py [new file with mode: 0644]
src/stats/migrations/__init__.py [new file with mode: 0644]

diff --git a/src/stats/migrations/0001_initial.py b/src/stats/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..691701b
--- /dev/null
@@ -0,0 +1,27 @@
+# Generated by Django 2.2.19 on 2021-05-31 13:36
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    initial = True
+
+    dependencies = [
+        ('catalogue', '0032_collection_listed'),
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Visits',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('year', models.PositiveSmallIntegerField()),
+                ('month', models.PositiveSmallIntegerField()),
+                ('views', models.IntegerField()),
+                ('unique_views', models.IntegerField()),
+                ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
+            ],
+        ),
+    ]
diff --git a/src/stats/migrations/__init__.py b/src/stats/migrations/__init__.py
new file mode 100644 (file)
index 0000000..e69de29