# Generated by Django 5.2.7 on 2026-02-07 03:19

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Jam',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('range_waktu', models.CharField(max_length=50)),
            ],
            options={
                'verbose_name_plural': 'Jam',
            },
        ),
        migrations.CreateModel(
            name='Kelas',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nama', models.CharField(max_length=20)),
            ],
            options={
                'verbose_name_plural': 'Kelas',
            },
        ),
        migrations.CreateModel(
            name='Ruangan',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nama', models.CharField(max_length=50)),
                ('kapasitas', models.IntegerField()),
            ],
            options={
                'verbose_name_plural': 'Ruangan',
            },
        ),
        migrations.AddField(
            model_name='tahunakademik',
            name='is_active',
            field=models.BooleanField(default=False),
        ),
        migrations.CreateModel(
            name='MataKuliah',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('kode', models.CharField(max_length=20, unique=True)),
                ('nama', models.CharField(max_length=100)),
                ('sks', models.IntegerField()),
                ('semester', models.IntegerField()),
                ('prodi', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.programstudi')),
            ],
            options={
                'verbose_name_plural': 'Mata Kuliah',
            },
        ),
        migrations.CreateModel(
            name='DosenPengampu',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dosen', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.dosen')),
                ('tahun_akademik', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.tahunakademik')),
                ('matkul', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.matakuliah')),
            ],
            options={
                'verbose_name_plural': 'Dosen Pengampu',
            },
        ),
        migrations.CreateModel(
            name='Jadwal',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dosen_pengampu', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.dosenpengampu')),
                ('hari', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.hari')),
                ('jam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.jam')),
                ('kelas', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.kelas')),
                ('ruangan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ruangan')),
            ],
            options={
                'verbose_name_plural': 'Jadwal',
            },
        ),
    ]
