pr0nstar

XVI.III

...@@ -45,7 +45,14 @@ class ProyectoResumenes(Base): ...@@ -45,7 +45,14 @@ class ProyectoResumenes(Base):
45 45
46 class ProyectoClasificadores(Base): 46 class ProyectoClasificadores(Base):
47 __tablename__ = "proyecto_clasificadores" 47 __tablename__ = "proyecto_clasificadores"
48 - 48 + __table_args__ = (
49 + Index("idx_proyecto_clasificadores_gestion", "gestion"),
50 + Index("idx_proyecto_clasificadores_nivel", "nivel"),
51 + Index("idx_proyecto_clasificadores_tipo", "tipo"),
52 + Index("idx_proyecto_clasificadores_programa_proyecto", "programa_proyecto"),
53 + Index("idx_proyecto_clasificadores_comp", "tipo", "programa_proyecto", "gestion"),
54 + {"schema": "web"},
55 + )
49 id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True) 56 id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
50 57
51 gestion: Mapped[int] = mapped_column(Integer) 58 gestion: Mapped[int] = mapped_column(Integer)
......