from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('classes', '0001_initial'), ] operations = [ migrations.CreateModel( name='Student', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=100)), ('last_name', models.CharField(max_length=100)), ('student_id', models.CharField(max_length=20, unique=True)), ('email', models.EmailField(unique=True)), ('phone', models.CharField(blank=True, max_length=20)), ('date_of_birth', models.DateField(blank=True, null=True)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], default='M', max_length=1)), ('address', models.TextField(blank=True)), ('enrollment_date', models.DateField(auto_now_add=True)), ('status', models.CharField(choices=[('active', 'Active'), ('inactive', 'Inactive'), ('graduated', 'Graduated')], default='active', max_length=20)), ('photo', models.ImageField(blank=True, null=True, upload_to='students/')), ('created_at', models.DateTimeField(auto_now_add=True)), ('school_class', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='students', to='classes.schoolclass')), ], options={'ordering': ['last_name', 'first_name']}, ), ]