# Generated by Django 4.2.19 on 2025-03-01 14:45

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('ec_user', '0015_alter_hobbiesinterests_extracurricular_activities_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='AwardsInfo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('award_name', models.CharField(max_length=100)),
                ('award_date', models.DateField()),
                ('award_organization', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='PunishmentsInfo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('discipline_date', models.DateField(blank=True, null=True)),
                ('discipline_issue', models.CharField(blank=True, max_length=255, null=True)),
                ('discipline_outcome', models.CharField(blank=True, max_length=255, null=True)),
            ],
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='age',
            field=models.IntegerField(blank=True, null=True, verbose_name='年龄'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='dob',
            field=models.DateField(blank=True, null=True, verbose_name='出生日期'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='ethnicity',
            field=models.CharField(default='Unknown', max_length=50, verbose_name='民族'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='gender',
            field=models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], default='M', max_length=1, verbose_name='性别'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='id_card_number',
            field=models.CharField(max_length=18, unique=True, verbose_name='身份证号'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='name',
            field=models.CharField(max_length=100, verbose_name='姓名'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='political_status',
            field=models.CharField(blank=True, max_length=50, null=True, verbose_name='政治面貌'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='subject_usage_count',
            field=models.IntegerField(default=5, verbose_name='使用次数限制'),
        ),
        migrations.AlterField(
            model_name='ecuser',
            name='subjects',
            field=models.ManyToManyField(blank=True, related_name='users', to='ec_user.subject', verbose_name='开放权限的科目'),
        ),
        migrations.DeleteModel(
            name='AwardsPunishments',
        ),
        migrations.AddField(
            model_name='punishmentsinfo',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='awardsinfo',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
    ]
