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.
35 lines
1.2 KiB
35 lines
1.2 KiB
# Generated by Django 3.2.25 on 2024-10-09 06:20
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Pledge',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('pledge_score', models.IntegerField()),
|
|
('status', models.IntegerField(default=0)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('student_id', models.CharField(max_length=10)),
|
|
('student_name', models.CharField(max_length=10)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Students',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('sid', models.CharField(max_length=10, unique=True, verbose_name='学号')),
|
|
('name', models.CharField(max_length=10, verbose_name='姓名')),
|
|
('score', models.DecimalField(decimal_places=1, default=0, max_digits=5, verbose_name='积分')),
|
|
],
|
|
),
|
|
]
|