# Generated by Django 5.1.6 on 2025-03-08 05:09

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Jurusan',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('kodejurusan', models.CharField(max_length=50, verbose_name='Kode Porgram Studi')),
                ('namajurusan', models.CharField(max_length=150, verbose_name='Progam Studi')),
                ('jenjang', models.CharField(blank=True, max_length=150, null=True, verbose_name='Jenjang')),
            ],
        ),
        migrations.CreateModel(
            name='Mahasiswa',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nim', models.CharField(max_length=50, verbose_name='Nim')),
                ('nama', models.CharField(max_length=150, verbose_name='Nama')),
                ('jk', models.CharField(choices=[('L', 'LAKI-LAKI'), ('PEREMPUAN', 'P')], max_length=50, verbose_name='Jneis Kelamin')),
                ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='Email')),
                ('jurusan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='perkuliahan.jurusan')),
            ],
        ),
    ]
