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.
27 lines
1010 B
27 lines
1010 B
# Generated by Django 3.2.4 on 2024-11-21 22:39
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('account', '0003_auto_20241120_1741'),
|
|
('course', '0002_auto_20241121_2238'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Participant',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('joined_date', models.DateTimeField(auto_now_add=True)),
|
|
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='participants', to='course.course')),
|
|
('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='participated_courses', to='account.studentuser')),
|
|
],
|
|
options={
|
|
'unique_together': {('student', 'course')},
|
|
},
|
|
),
|
|
]
|