Showing
1 changed file
with
9 additions
and
2 deletions
| ... | @@ -45,9 +45,16 @@ class ProyectoResumenes(Base): | ... | @@ -45,9 +45,16 @@ 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) |
| 52 | tipo: Mapped[str] = mapped_column(String(16)) | 59 | tipo: Mapped[str] = mapped_column(String(16)) |
| 53 | nivel: Mapped[str] = mapped_column(String(24)) | 60 | nivel: Mapped[str] = mapped_column(String(24)) | ... | ... |
-
Please register or login to post a comment