listo institucion tipo carrito

This commit is contained in:
xXpuma99Xx
2022-04-18 09:34:36 -05:00
parent f9c3984916
commit b6da1e45d6
9 changed files with 114 additions and 0 deletions
@@ -2,6 +2,7 @@ import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
import { Carrera } from '../../carrera/entity/carrera.entity';
import { InstitucionDia } from '../../institucion-dia/entity/institucion-dia.entity';
import { InstitucionInfraccion } from '../../institucion-infraccion/entity/institucion-infraccion.entity';
import { InstitucionTipoCarrito } from '../../institucion-tipo-carrito/entity/institucion-tipo-carrito.entity';
import { Modulo } from '../../modulo/entity/modulo.entity';
import { Operador } from '../../operador/entity/operador.entity';
import { Usuario } from '../../usuario/entity/usuario.entity';
@@ -44,6 +45,12 @@ export class Institucion {
)
institucionInfracciones: InstitucionInfraccion[];
@OneToMany(
() => InstitucionTipoCarrito,
(institucionTipoCarrito) => institucionTipoCarrito.institucion,
)
institucionTiposCarritos: InstitucionTipoCarrito[];
@OneToMany(() => Modulo, (modulo) => modulo.institucion)
modulos: Modulo[];