modulo institución programa final
This commit is contained in:
parent
4ea6f46629
commit
803390a5bf
@ -15,7 +15,7 @@ export class CarreraPrograma {
|
|||||||
@JoinColumn({ name: 'id_institucion_carrera' })
|
@JoinColumn({ name: 'id_institucion_carrera' })
|
||||||
institucionCarrera: InstitucionCarrera;
|
institucionCarrera: InstitucionCarrera;
|
||||||
|
|
||||||
@ManyToOne(() => Programa, (programa) => programa.carrerasPrograma, {
|
@ManyToOne(() => Programa, (programa) => programa.carreras, {
|
||||||
eager: true,
|
eager: true,
|
||||||
})
|
})
|
||||||
@JoinColumn({ name: 'id_programa' })
|
@JoinColumn({ name: 'id_programa' })
|
||||||
|
@ -16,13 +16,13 @@ export class InstitucionPrograma {
|
|||||||
@Column({ type: Boolean, nullable: false, default: false })
|
@Column({ type: Boolean, nullable: false, default: false })
|
||||||
mostrar: boolean;
|
mostrar: boolean;
|
||||||
|
|
||||||
|
@ManyToOne(() => Institucion, (institucion) => institucion.programas)
|
||||||
|
@JoinColumn({ name: 'id_institucion' })
|
||||||
|
institucion: Institucion;
|
||||||
|
|
||||||
@ManyToOne(() => Programa, (programa) => programa.instituciones, {
|
@ManyToOne(() => Programa, (programa) => programa.instituciones, {
|
||||||
eager: true,
|
eager: true,
|
||||||
})
|
})
|
||||||
@JoinColumn({ name: 'id_programa' })
|
@JoinColumn({ name: 'id_programa' })
|
||||||
programa: Programa;
|
programa: Programa;
|
||||||
|
|
||||||
@ManyToOne(() => Institucion, (institucion) => institucion.programas)
|
|
||||||
@JoinColumn({ name: 'id_institucion' })
|
|
||||||
institucion: Institucion;
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ export class Programa {
|
|||||||
() => CarreraPrograma,
|
() => CarreraPrograma,
|
||||||
(carreraPrograma) => carreraPrograma.programa,
|
(carreraPrograma) => carreraPrograma.programa,
|
||||||
)
|
)
|
||||||
carrerasPrograma: CarreraPrograma[];
|
carreras: CarreraPrograma[];
|
||||||
|
|
||||||
@OneToMany(() => EquipoPrograma, (equipoPrograma) => equipoPrograma.programa)
|
@OneToMany(() => EquipoPrograma, (equipoPrograma) => equipoPrograma.programa)
|
||||||
equipos: EquipoPrograma[];
|
equipos: EquipoPrograma[];
|
||||||
|
@ -2,7 +2,7 @@ import { Body, Controller, Get, Post, Put, Query } from '@nestjs/common';
|
|||||||
import { ApiBody, ApiOperation, ApiQuery, ApiTags } from '@nestjs/swagger';
|
import { ApiBody, ApiOperation, ApiQuery, ApiTags } from '@nestjs/swagger';
|
||||||
import { Serealize } from '../interceptors/serialize.interceptor';
|
import { Serealize } from '../interceptors/serialize.interceptor';
|
||||||
import { InstitucionProgramaService } from './institucion-programa.service';
|
import { InstitucionProgramaService } from './institucion-programa.service';
|
||||||
import { IdInstitucionDto } from 'src/dto/id-institucion.dto';
|
import { IdInstitucionDto } from '../dto/id-institucion.dto';
|
||||||
import { CreateProgramaDto } from './dto/input/create.dto';
|
import { CreateProgramaDto } from './dto/input/create.dto';
|
||||||
import { UpdateProgramaDto } from './dto/input/update.dto';
|
import { UpdateProgramaDto } from './dto/input/update.dto';
|
||||||
import { InstitucionProgramaOutputDto } from './dto/output/institucion-programa.dto';
|
import { InstitucionProgramaOutputDto } from './dto/output/institucion-programa.dto';
|
||||||
|
Loading…
Reference in New Issue
Block a user