StudE-Backend/stude/courses/migrations/0001_initial.py

31 lines
940 B
Python
Raw Normal View History

# Generated by Django 4.2.3 on 2023-07-09 10:57
2023-06-27 14:16:40 +08:00
from django.db import migrations, models
2023-06-27 18:15:31 +08:00
import django.db.models.deletion
2023-06-27 14:16:40 +08:00
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2023-06-27 18:15:31 +08:00
('name', models.CharField(max_length=64)),
('shortname', models.CharField(max_length=16)),
],
),
migrations.CreateModel(
name='SubjectCourse',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('course', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.course')),
2023-06-27 14:16:40 +08:00
],
),
]