summaryrefslogtreecommitdiff
path: root/stats/migrations/0001_initial.py
diff options
context:
space:
mode:
authorprathamesh2021-03-23 14:57:23 +0530
committerprathamesh2021-03-23 14:57:23 +0530
commitfc070aeab4322cfe34f6074ae1fc07db42be0fe6 (patch)
tree589bcd30c7d00e5d060e1161fa8583e84f6c3f99 /stats/migrations/0001_initial.py
parentf5224d8d1866122ad2ecfb3118ffd724c4dd3cf8 (diff)
parent6fda19daaa06482b8eb52eeb62f9b0a15d0a3da6 (diff)
downloadonline_test-fc070aeab4322cfe34f6074ae1fc07db42be0fe6.tar.gz
online_test-fc070aeab4322cfe34f6074ae1fc07db42be0fe6.tar.bz2
online_test-fc070aeab4322cfe34f6074ae1fc07db42be0fe6.zip
Merge branch 'master' of https://github.com/FOSSEE/online_test into add-test-cases-for-QRcode-based-upload
Diffstat (limited to 'stats/migrations/0001_initial.py')
-rw-r--r--stats/migrations/0001_initial.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/stats/migrations/0001_initial.py b/stats/migrations/0001_initial.py
new file mode 100644
index 0000000..4bbae49
--- /dev/null
+++ b/stats/migrations/0001_initial.py
@@ -0,0 +1,42 @@
+# Generated by Django 3.0.7 on 2020-11-07 13:46
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('yaksh', '0027_release_0_28_0'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='TrackLesson',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('current_time', models.CharField(default='00:00:00', max_length=100)),
+ ('video_duration', models.CharField(default='00:00:00', max_length=100)),
+ ('creation_time', models.DateTimeField(auto_now_add=True)),
+ ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Course')),
+ ('lesson', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Lesson')),
+ ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ],
+ options={
+ 'unique_together': {('user', 'course', 'lesson')},
+ },
+ ),
+ migrations.CreateModel(
+ name='LessonLog',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('last_access_time', models.DateTimeField(default=django.utils.timezone.now)),
+ ('track', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stats.TrackLesson')),
+ ],
+ ),
+ ]