# Generated by Django 3.1.4 on 2021-01-31 18:01

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('institution', '0001_initial'),
        ('personal', '0001_initial'),
        ('instructor', '0001_initial'),
        ('student', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='College',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=25)),
            ],
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('title', models.CharField(max_length=100)),
                ('code', models.PositiveIntegerField(blank=True, null=True)),
                ('credit_hour', models.PositiveIntegerField(default=1)),
            ],
        ),
        migrations.CreateModel(
            name='Enroll',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('id_number', models.CharField(max_length=25, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Postion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('postion', models.CharField(max_length=25)),
                ('description', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='School',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=25)),
                ('motto', models.CharField(max_length=25)),
                ('mascot', models.ImageField(blank=True, null=True, upload_to='')),
                ('logo', models.ImageField(blank=True, null=True, upload_to='')),
                ('year_founded', models.DateField()),
                ('divisions', models.ManyToManyField(to='institution.ISCEDLevel')),
                ('institution', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='institution.institution')),
            ],
        ),
        migrations.CreateModel(
            name='StudentStatus',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('status', models.CharField(choices=[('FR', 'Freshman'), ('SO', 'Sophomore'), ('JR', 'Junior'), ('SR', 'Senior'), ('GR', 'Graduate')], max_length=2)),
                ('enroll', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.enroll')),
            ],
        ),
        migrations.CreateModel(
            name='Staff',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('emp_id', models.CharField(max_length=25, unique=True)),
                ('personal', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='personal.personal')),
                ('postions', models.ManyToManyField(to='school.Postion')),
            ],
        ),
        migrations.CreateModel(
            name='SchoolCourse',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.course')),
                ('school', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.school')),
            ],
        ),
        migrations.AddField(
            model_name='enroll',
            name='school',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='school.school'),
        ),
        migrations.AddField(
            model_name='enroll',
            name='student',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='student.student'),
        ),
        migrations.CreateModel(
            name='CourseInstructor',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.course')),
                ('instructor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='instructor.instructor')),
            ],
        ),
        migrations.AddField(
            model_name='course',
            name='instructors',
            field=models.ManyToManyField(through='school.CourseInstructor', to='instructor.Instructor'),
        ),
        migrations.AddField(
            model_name='course',
            name='level',
            field=models.ManyToManyField(to='institution.ISCEDLevel'),
        ),
        migrations.CreateModel(
            name='CollegeCourse',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('college', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.college')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.course')),
            ],
        ),
        migrations.AddField(
            model_name='college',
            name='courses',
            field=models.ManyToManyField(through='school.CollegeCourse', to='school.Course'),
        ),
        migrations.AddField(
            model_name='college',
            name='school',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.school'),
        ),
    ]

c0a41d11da06eb2d2473a67f51f0ce72a054f1c8
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('institution', '0001_initial'), ('personal',
        '0001_initial'), ('instructor', '0001_initial'), ('student',
        '0001_initial')]
    operations = [migrations.CreateModel(name='College', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False)), ('name', models.CharField(max_length=25))]
        ), migrations.CreateModel(name='Course', fields=[('id', models.
        UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('title', models.CharField(max_length=100)), (
        'code', models.PositiveIntegerField(blank=True, null=True)), (
        'credit_hour', models.PositiveIntegerField(default=1))]),
        migrations.CreateModel(name='Enroll', fields=[('id', models.
        UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('id_number', models.CharField(max_length=25,
        unique=True))]), migrations.CreateModel(name='Postion', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('postion', models.CharField(
        max_length=25)), ('description', models.TextField())]), migrations.
        CreateModel(name='School', fields=[('id', models.UUIDField(default=
        uuid.uuid4, editable=False, primary_key=True, serialize=False)), (
        'name', models.CharField(max_length=25)), ('motto', models.
        CharField(max_length=25)), ('mascot', models.ImageField(blank=True,
        null=True, upload_to='')), ('logo', models.ImageField(blank=True,
        null=True, upload_to='')), ('year_founded', models.DateField()), (
        'divisions', models.ManyToManyField(to='institution.ISCEDLevel')),
        ('institution', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, to='institution.institution'))]), migrations.
        CreateModel(name='StudentStatus', fields=[('id', models.UUIDField(
        default=uuid.uuid4, editable=False, primary_key=True, serialize=
        False)), ('status', models.CharField(choices=[('FR', 'Freshman'), (
        'SO', 'Sophomore'), ('JR', 'Junior'), ('SR', 'Senior'), ('GR',
        'Graduate')], max_length=2)), ('enroll', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='school.enroll'))]),
        migrations.CreateModel(name='Staff', fields=[('id', models.
        UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('emp_id', models.CharField(max_length=25,
        unique=True)), ('personal', models.OneToOneField(on_delete=django.
        db.models.deletion.CASCADE, to='personal.personal')), ('postions',
        models.ManyToManyField(to='school.Postion'))]), migrations.
        CreateModel(name='SchoolCourse', fields=[('id', models.UUIDField(
        default=uuid.uuid4, editable=False, primary_key=True, serialize=
        False)), ('course', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, to='school.course')), ('school', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'school.school'))]), migrations.AddField(model_name='enroll', name=
        'school', field=models.OneToOneField(on_delete=django.db.models.
        deletion.CASCADE, to='school.school')), migrations.AddField(
        model_name='enroll', name='student', field=models.OneToOneField(
        on_delete=django.db.models.deletion.CASCADE, to='student.student')),
        migrations.CreateModel(name='CourseInstructor', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False)), ('course', models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='school.course')), (
        'instructor', models.ForeignKey(on_delete=django.db.models.deletion
        .CASCADE, to='instructor.instructor'))]), migrations.AddField(
        model_name='course', name='instructors', field=models.
        ManyToManyField(through='school.CourseInstructor', to=
        'instructor.Instructor')), migrations.AddField(model_name='course',
        name='level', field=models.ManyToManyField(to=
        'institution.ISCEDLevel')), migrations.CreateModel(name=
        'CollegeCourse', fields=[('id', models.UUIDField(default=uuid.uuid4,
        editable=False, primary_key=True, serialize=False)), ('college',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'school.college')), ('course', models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, to='school.course'))]), migrations.
        AddField(model_name='college', name='courses', field=models.
        ManyToManyField(through='school.CollegeCourse', to='school.Course')
        ), migrations.AddField(model_name='college', name='school', field=
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'school.school'))]

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


class Migration(migrations.Migration):
    initial = True
    dependencies = [('institution', '0001_initial'), ('personal',
        '0001_initial'), ('instructor', '0001_initial'), ('student',
        '0001_initial')]
    operations = [migrations.CreateModel(name='College', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False)), ('name', models.CharField(max_length=25))]
        ), migrations.CreateModel(name='Course', fields=[('id', models.
        UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('title', models.CharField(max_length=100)), (
        'code', models.PositiveIntegerField(blank=True, null=True)), (
        'credit_hour', models.PositiveIntegerField(default=1))]),
        migrations.CreateModel(name='Enroll', fields=[('id', models.
        UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('id_number', models.CharField(max_length=25,
        unique=True))]), migrations.CreateModel(name='Postion', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('postion', models.CharField(
        max_length=25)), ('description', models.TextField())]), migrations.
        CreateModel(name='School', fields=[('id', models.UUIDField(default=
        uuid.uuid4, editable=False, primary_key=True, serialize=False)), (
        'name', models.CharField(max_length=25)), ('motto', models.
        CharField(max_length=25)), ('mascot', models.ImageField(blank=True,
        null=True, upload_to='')), ('logo', models.ImageField(blank=True,
        null=True, upload_to='')), ('year_founded', models.DateField()), (
        'divisions', models.ManyToManyField(to='institution.ISCEDLevel')),
        ('institution', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, to='institution.institution'))]), migrations.
        CreateModel(name='StudentStatus', fields=[('id', models.UUIDField(
        default=uuid.uuid4, editable=False, primary_key=True, serialize=
        False)), ('status', models.CharField(choices=[('FR', 'Freshman'), (
        'SO', 'Sophomore'), ('JR', 'Junior'), ('SR', 'Senior'), ('GR',
        'Graduate')], max_length=2)), ('enroll', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='school.enroll'))]),
        migrations.CreateModel(name='Staff', fields=[('id', models.
        UUIDField(default=uuid.uuid4, editable=False, primary_key=True,
        serialize=False)), ('emp_id', models.CharField(max_length=25,
        unique=True)), ('personal', models.OneToOneField(on_delete=django.
        db.models.deletion.CASCADE, to='personal.personal')), ('postions',
        models.ManyToManyField(to='school.Postion'))]), migrations.
        CreateModel(name='SchoolCourse', fields=[('id', models.UUIDField(
        default=uuid.uuid4, editable=False, primary_key=True, serialize=
        False)), ('course', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, to='school.course')), ('school', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'school.school'))]), migrations.AddField(model_name='enroll', name=
        'school', field=models.OneToOneField(on_delete=django.db.models.
        deletion.CASCADE, to='school.school')), migrations.AddField(
        model_name='enroll', name='student', field=models.OneToOneField(
        on_delete=django.db.models.deletion.CASCADE, to='student.student')),
        migrations.CreateModel(name='CourseInstructor', fields=[('id',
        models.UUIDField(default=uuid.uuid4, editable=False, primary_key=
        True, serialize=False)), ('course', models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='school.course')), (
        'instructor', models.ForeignKey(on_delete=django.db.models.deletion
        .CASCADE, to='instructor.instructor'))]), migrations.AddField(
        model_name='course', name='instructors', field=models.
        ManyToManyField(through='school.CourseInstructor', to=
        'instructor.Instructor')), migrations.AddField(model_name='course',
        name='level', field=models.ManyToManyField(to=
        'institution.ISCEDLevel')), migrations.CreateModel(name=
        'CollegeCourse', fields=[('id', models.UUIDField(default=uuid.uuid4,
        editable=False, primary_key=True, serialize=False)), ('college',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'school.college')), ('course', models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, to='school.course'))]), migrations.
        AddField(model_name='college', name='courses', field=models.
        ManyToManyField(through='school.CollegeCourse', to='school.Course')
        ), migrations.AddField(model_name='college', name='school', field=
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'school.school'))]

# Generated by Django 3.1.4 on 2021-01-31 18:01

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('institution', '0001_initial'),
        ('personal', '0001_initial'),
        ('instructor', '0001_initial'),
        ('student', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='College',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=25)),
            ],
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('title', models.CharField(max_length=100)),
                ('code', models.PositiveIntegerField(blank=True, null=True)),
                ('credit_hour', models.PositiveIntegerField(default=1)),
            ],
        ),
        migrations.CreateModel(
            name='Enroll',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('id_number', models.CharField(max_length=25, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Postion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('postion', models.CharField(max_length=25)),
                ('description', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='School',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=25)),
                ('motto', models.CharField(max_length=25)),
                ('mascot', models.ImageField(blank=True, null=True, upload_to='')),
                ('logo', models.ImageField(blank=True, null=True, upload_to='')),
                ('year_founded', models.DateField()),
                ('divisions', models.ManyToManyField(to='institution.ISCEDLevel')),
                ('institution', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='institution.institution')),
            ],
        ),
        migrations.CreateModel(
            name='StudentStatus',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('status', models.CharField(choices=[('FR', 'Freshman'), ('SO', 'Sophomore'), ('JR', 'Junior'), ('SR', 'Senior'), ('GR', 'Graduate')], max_length=2)),
                ('enroll', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.enroll')),
            ],
        ),
        migrations.CreateModel(
            name='Staff',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('emp_id', models.CharField(max_length=25, unique=True)),
                ('personal', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='personal.personal')),
                ('postions', models.ManyToManyField(to='school.Postion')),
            ],
        ),
        migrations.CreateModel(
            name='SchoolCourse',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.course')),
                ('school', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.school')),
            ],
        ),
        migrations.AddField(
            model_name='enroll',
            name='school',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='school.school'),
        ),
        migrations.AddField(
            model_name='enroll',
            name='student',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='student.student'),
        ),
        migrations.CreateModel(
            name='CourseInstructor',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.course')),
                ('instructor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='instructor.instructor')),
            ],
        ),
        migrations.AddField(
            model_name='course',
            name='instructors',
            field=models.ManyToManyField(through='school.CourseInstructor', to='instructor.Instructor'),
        ),
        migrations.AddField(
            model_name='course',
            name='level',
            field=models.ManyToManyField(to='institution.ISCEDLevel'),
        ),
        migrations.CreateModel(
            name='CollegeCourse',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('college', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.college')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.course')),
            ],
        ),
        migrations.AddField(
            model_name='college',
            name='courses',
            field=models.ManyToManyField(through='school.CollegeCourse', to='school.Course'),
        ),
        migrations.AddField(
            model_name='college',
            name='school',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='school.school'),
        ),
    ]
