listo institucion tipo carrito
This commit is contained in:
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user