variables de entorno, correcciones de codigo actual, docker file
This commit is contained in:
@@ -11,11 +11,15 @@ export class SeccionPregunta {
|
||||
@Column({ type: 'tinyint' })
|
||||
posicion: number;
|
||||
|
||||
@ManyToOne(() => Pregunta, (pregunta) => pregunta.id_pregunta)
|
||||
@ManyToOne(() => Pregunta, (pregunta) => pregunta.seccionPreguntas)
|
||||
pregunta: Pregunta;
|
||||
|
||||
@Column({ type: 'int' })
|
||||
id_pregunta: number;
|
||||
|
||||
@ManyToOne(() => Seccion, (seccion) => seccion.id_seccion)
|
||||
@ManyToOne(() => Seccion, (seccion) => seccion.seccionPreguntas)
|
||||
seccion: Seccion;
|
||||
|
||||
@Column({ type: 'int' })
|
||||
id_seccion: number;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { SeccionPreguntaService } from './seccion_pregunta.service';
|
||||
import { SeccionPreguntaController } from './seccion_pregunta.controller';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { SeccionPregunta } from './entities/seccion_pregunta.entity';
|
||||
import { PreguntaModule } from '../pregunta/pregunta.module';
|
||||
import { SeccionModule } from '../seccion/seccion.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([SeccionPregunta]),
|
||||
PreguntaModule,
|
||||
SeccionModule
|
||||
],
|
||||
controllers: [SeccionPreguntaController],
|
||||
providers: [SeccionPreguntaService],
|
||||
exports: [TypeOrmModule]
|
||||
})
|
||||
export class SeccionPreguntaModule {}
|
||||
|
||||
Reference in New Issue
Block a user