# Generated by Django 5.2.7 on 2026-02-04 05:44

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0009_platformsettings_remove_student_is_mobile_verified_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='Governorate',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name_en', models.CharField(default='', max_length=100, verbose_name='Name (English)')),
                ('name_ar', models.CharField(default='', max_length=100, verbose_name='Name (Arabic)')),
            ],
            options={
                'verbose_name': 'Governorate',
                'verbose_name_plural': 'Governorates',
            },
        ),
        migrations.RemoveField(
            model_name='student',
            name='moderate',
        ),
        migrations.RemoveField(
            model_name='city',
            name='name',
        ),
        migrations.AddField(
            model_name='city',
            name='name_ar',
            field=models.CharField(default='', max_length=100, verbose_name='Name (Arabic)'),
        ),
        migrations.AddField(
            model_name='city',
            name='name_en',
            field=models.CharField(default='', max_length=100, verbose_name='Name (English)'),
        ),
        migrations.AddField(
            model_name='city',
            name='governorate',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cities', to='core.governorate', verbose_name='Governorate'),
        ),
        migrations.AddField(
            model_name='student',
            name='governorate',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.governorate', verbose_name='Governorate'),
        ),
        migrations.DeleteModel(
            name='Moderate',
        ),
    ]
