File size: 1,561 Bytes
66ffccc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
from sqlalchemy import Column, Integer, String, Float, Date, Time
from sqlalchemy.orm import declarative_base

Base = declarative_base()


class Becas(Base):
    __tablename__ = "becas"
    ID_Beca = Column(Integer, primary_key=True)
    Nombre_Beca = Column(String, index=True)
    Descripcion = Column(String)
    Monto = Column(Float)


class Estudiantes(Base):
    __tablename__ = "estudiantes"
    ID_Estudiante = Column(Integer, primary_key=True)
    Nombre = Column(String)
    Apellido = Column(String)
    Fecha_Nacimiento = Column(Date)
    Direccion = Column(String)
    Telefono = Column(String)


class Profesores(Base):
    __tablename__ = "profesores"
    ID_Profesor = Column(Integer, primary_key=True)
    Nombre = Column(String)
    Apellido = Column(String)
    Especialidad = Column(String)
    Telefono = Column(String)


class Cursos(Base):
    __tablename__ = "cursos"
    ID_Curso = Column(Integer, primary_key=True)
    Nombre_Curso = Column(String)
    Duracion = Column(String)
    ID_Profesor = Column(Integer)


class Horarios(Base):
    __tablename__ = "horarios"
    ID_Horario = Column(Integer, primary_key=True)
    ID_Curso = Column(Integer)
    Dia = Column(String)
    Hora_Inicio = Column(Time)
    Hora_Fin = Column(Time)


class Evaluaciones(Base):
    __tablename__ = "evaluaciones"
    ID_Evaluacion = Column(Integer, primary_key=True)
    ID_Estudiante = Column(Integer)
    ID_Curso = Column(Integer)
    Fecha = Column(Date)
    Calificacion = Column(Integer)