12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # Generated by Django 3.1.1 on 2020-10-15 15:00
-
- from django.db import migrations, models
- import django.db.models.deletion
-
-
- class Migration(migrations.Migration):
-
- dependencies = [
- ('CompanionApp', '0002_curso_code'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='Facultad',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('fname', models.CharField(max_length=150)),
- ],
- ),
- migrations.AddField(
- model_name='curso',
- name='creditos',
- field=models.IntegerField(default=0),
- ),
- migrations.CreateModel(
- name='Matricula',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('section', models.CharField(max_length=5)),
- ('prof', models.CharField(max_length=150)),
- ('grade', models.CharField(max_length=3)),
- ('semestre', models.IntegerField(default=0)),
- ('course_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.curso')),
- ],
- ),
- migrations.AddField(
- model_name='curso',
- name='fac_id',
- field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.facultad'),
- preserve_default=False,
- ),
- ]
|