# Generated by Django 5.0.3 on 2024-03-19 13:19 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0004_lesson_cover'), ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='PlayHistory', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time', models.IntegerField()), ('update_time', models.DateTimeField(auto_now=True)), ('lesson', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='courses.lesson')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]