123456789101112131415161718192021222324 |
- from django.db import models
-
- # Create your models here.
- # diego, Diego1999$
-
- class Facultad(models.Model):
- fname = models.CharField(max_length=150)
-
- class Curso(models.Model):
- fac_id = models.ForeignKey(Facultad, on_delete=models.CASCADE)
- name = models.CharField(max_length=150)
- code = models.CharField(max_length=9)
- creditos = models.IntegerField(default=0)
-
- class Matricula(models.Model):
- course_id = models.ForeignKey(Curso, on_delete=models.CASCADE)
- section = models.CharField(max_length=5)
- prof = models.CharField(max_length=150)
- grade = models.CharField(max_length=3)
- semestre = models.IntegerField(default=0)
- horario = models.CharField(max_length=50)
- dias = models.CharField(max_length=10)
- salon = models.CharField(max_length=12)
|