# Generated by Django 3.2 on 2021-04-22 10:57

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('department_app', '0002_auto_20210422_1227'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('program_app', '0002_auto_20210422_1227'),
        ('profession_app', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='StudentProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('student_status', models.BooleanField()),
                ('phone_number', models.CharField(max_length=100)),
                ('year_of_study', models.CharField(max_length=100)),
                ('profile_image', models.ImageField(blank=True, upload_to='images/')),
                ('academic_supervisor_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='academic_supervisor', to=settings.AUTH_USER_MODEL)),
                ('department_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='department_app.department')),
                ('field_supervisor_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='field_supervisor', to=settings.AUTH_USER_MODEL)),
                ('profession_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='profession_app.profession')),
                ('program_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='program_app.program')),
                ('student_id', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='student_id', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
