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.

33 lines
1.2 KiB

# Generated by Django 2.1 on 2023-09-07 13:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('sid', models.AutoField(primary_key=True, serialize=False, verbose_name='学生编号')),
('username', models.CharField(blank=True, max_length=30, verbose_name='用户名称')),
('password', models.CharField(blank=True, max_length=100, verbose_name='密码')),
('name', models.CharField(blank=True, max_length=100, verbose_name='姓名')),
('sex', models.CharField(blank=True, max_length=4, verbose_name='性别')),
('grade', models.CharField(blank=True, max_length=20, verbose_name='年级')),
('class_name', models.CharField(blank=True, max_length=50, verbose_name='班级')),
('major', models.CharField(blank=True, max_length=50, verbose_name='专业名称')),
],
options={
'verbose_name': '学生',
'verbose_name_plural': '学生',
'db_table': 'student',
},
),
]