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.

36 lines
1.3 KiB

# Generated by Django 5.1.1 on 2024-09-30 11:58
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='user',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(max_length=200, unique=True)),
('password', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
name='student',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('student_xuehao', models.IntegerField(default=0)),
('student_name', models.CharField(blank=True, max_length=200, null=True)),
('student_major', models.CharField(blank=True, max_length=200, null=True)),
('student_class', models.CharField(blank=True, max_length=200, null=True)),
('student_score', models.IntegerField(default=0)),
('teather', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user.user')),
],
),
]