You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
# Generated by Django 3.2.4 on 2024-11-21 22:38
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('account', '0003_auto_20241120_1741'),
|
|
('course', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='lesson',
|
|
name='is_active',
|
|
field=models.BooleanField(default=True, verbose_name='Is Active'),
|
|
),
|
|
migrations.CreateModel(
|
|
name='LessonCompletion',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('completed_at', models.DateTimeField(auto_now_add=True)),
|
|
('lesson', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='completions', to='course.lesson')),
|
|
('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lesson_completions', to='account.studentuser')),
|
|
],
|
|
options={
|
|
'unique_together': {('student', 'lesson')},
|
|
},
|
|
),
|
|
]
|