No Description

0003_auto_20201015_1100.py 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Generated by Django 3.1.1 on 2020-10-15 15:00
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('CompanionApp', '0002_curso_code'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Facultad',
  11. fields=[
  12. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('fname', models.CharField(max_length=150)),
  14. ],
  15. ),
  16. migrations.AddField(
  17. model_name='curso',
  18. name='creditos',
  19. field=models.IntegerField(default=0),
  20. ),
  21. migrations.CreateModel(
  22. name='Matricula',
  23. fields=[
  24. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  25. ('section', models.CharField(max_length=5)),
  26. ('prof', models.CharField(max_length=150)),
  27. ('grade', models.CharField(max_length=3)),
  28. ('semestre', models.IntegerField(default=0)),
  29. ('course_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.curso')),
  30. ],
  31. ),
  32. migrations.AddField(
  33. model_name='curso',
  34. name='fac_id',
  35. field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='CompanionApp.facultad'),
  36. preserve_default=False,
  37. ),
  38. ]