Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- models/__pycache__/model.cpython-311.pyc +0 -0
- models/__pycache__/schema.cpython-311.pyc +0 -0
- models/model.py +57 -0
- models/schema.py +1 -1
models/__pycache__/model.cpython-311.pyc
ADDED
|
Binary file (3.38 kB). View file
|
|
|
models/__pycache__/schema.cpython-311.pyc
CHANGED
|
Binary files a/models/__pycache__/schema.cpython-311.pyc and b/models/__pycache__/schema.cpython-311.pyc differ
|
|
|
models/model.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from sqlalchemy import Column, Integer, String, Float, Date, Time
|
| 2 |
+
from sqlalchemy.orm import declarative_base
|
| 3 |
+
|
| 4 |
+
Base = declarative_base()
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class Becas(Base):
|
| 8 |
+
__tablename__ = "becas"
|
| 9 |
+
ID_Beca = Column(Integer, primary_key=True)
|
| 10 |
+
Nombre_Beca = Column(String, index=True)
|
| 11 |
+
Descripcion = Column(String)
|
| 12 |
+
Monto = Column(Float)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class Estudiantes(Base):
|
| 16 |
+
__tablename__ = "estudiantes"
|
| 17 |
+
ID_Estudiante = Column(Integer, primary_key=True)
|
| 18 |
+
Nombre = Column(String)
|
| 19 |
+
Apellido = Column(String)
|
| 20 |
+
Fecha_Nacimiento = Column(Date)
|
| 21 |
+
Direccion = Column(String)
|
| 22 |
+
Telefono = Column(String)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class Profesores(Base):
|
| 26 |
+
__tablename__ = "profesores"
|
| 27 |
+
ID_Profesor = Column(Integer, primary_key=True)
|
| 28 |
+
Nombre = Column(String)
|
| 29 |
+
Apellido = Column(String)
|
| 30 |
+
Especialidad = Column(String)
|
| 31 |
+
Telefono = Column(String)
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
class Cursos(Base):
|
| 35 |
+
__tablename__ = "cursos"
|
| 36 |
+
ID_Curso = Column(Integer, primary_key=True)
|
| 37 |
+
Nombre_Curso = Column(String)
|
| 38 |
+
Duracion = Column(String)
|
| 39 |
+
ID_Profesor = Column(Integer)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class Horarios(Base):
|
| 43 |
+
__tablename__ = "horarios"
|
| 44 |
+
ID_Horario = Column(Integer, primary_key=True)
|
| 45 |
+
ID_Curso = Column(Integer)
|
| 46 |
+
Dia = Column(String)
|
| 47 |
+
Hora_Inicio = Column(Time)
|
| 48 |
+
Hora_Fin = Column(Time)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class Evaluaciones(Base):
|
| 52 |
+
__tablename__ = "evaluaciones"
|
| 53 |
+
ID_Evaluacion = Column(Integer, primary_key=True)
|
| 54 |
+
ID_Estudiante = Column(Integer)
|
| 55 |
+
ID_Curso = Column(Integer)
|
| 56 |
+
Fecha = Column(Date)
|
| 57 |
+
Calificacion = Column(Integer)
|
models/schema.py
CHANGED
|
@@ -5,7 +5,7 @@ from datetime import date, time
|
|
| 5 |
|
| 6 |
class BecasBase(BaseModel):
|
| 7 |
Nombre_Beca: str
|
| 8 |
-
|
| 9 |
Monto: float
|
| 10 |
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
class BecasBase(BaseModel):
|
| 7 |
Nombre_Beca: str
|
| 8 |
+
Descripcion: str
|
| 9 |
Monto: float
|
| 10 |
|
| 11 |
|