# Generated by Django 2.1 on 2023-09-07 13:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('teacher', '0001_initial'), ('Student', '0001_initial'), ] operations = [ migrations.CreateModel( name='Course', fields=[ ('cid', models.AutoField(primary_key=True, serialize=False, verbose_name='课程编号')), ('name', models.CharField(blank=True, max_length=255, verbose_name='课程名称')), ('type', models.CharField(blank=True, max_length=128, verbose_name='课程类型')), ('credit', models.IntegerField(verbose_name='课程学分')), ('tid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='teacher.Teacher')), ], options={ 'verbose_name': '课程', 'verbose_name_plural': '课程', 'db_table': 'course', }, ), migrations.CreateModel( name='SC', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('middle_grade', models.IntegerField()), ('end_grade', models.IntegerField()), ('cid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='course.Course')), ('sid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Student.Student')), ], options={ 'verbose_name': '管理员', 'verbose_name_plural': '管理员', 'db_table': 'sc', }, ), migrations.AlterUniqueTogether( name='sc', unique_together={('sid', 'cid')}, ), ]