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
33 lines
1.2 KiB
# Generated by Django 2.1 on 2023-09-06 14:01
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Student',
|
|
fields=[
|
|
('sid', models.IntegerField(primary_key=True, serialize=False, verbose_name='学生编号')),
|
|
('s_username', models.CharField(max_length=30, verbose_name='用户名称')),
|
|
('s_password', models.CharField(max_length=100, verbose_name='密码')),
|
|
('s_name', models.CharField(max_length=100, verbose_name='姓名')),
|
|
('s_sex', models.CharField(max_length=4, verbose_name='性别')),
|
|
('s_grade', models.IntegerField(verbose_name='年级')),
|
|
('s_class_name', models.CharField(max_length=50, verbose_name='班级')),
|
|
('s_major', models.CharField(max_length=50, verbose_name='专业名称')),
|
|
],
|
|
options={
|
|
'verbose_name': '学生',
|
|
'verbose_name_plural': '学生',
|
|
'db_table': 'student',
|
|
},
|
|
),
|
|
]
|