2025-03-26 14:39:56 -06:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
|
import { OpcionService } from './opcion.service';
|
|
|
|
|
import { OpcionController } from './opcion.controller';
|
2025-04-01 19:10:59 -06:00
|
|
|
import { PreguntaModule } from 'src/pregunta/pregunta.module';
|
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
|
import { Opcion } from './entities/opcion.entity';
|
|
|
|
|
import { TipoPregunta } from 'src/tipo_pregunta/entities/tipo_pregunta.entity';
|
2025-04-02 11:54:17 -06:00
|
|
|
import { PreguntaOpcion } from 'src/pregunta_opcion/entities/pregunta_opcion.entity';
|
|
|
|
|
import { Pregunta } from 'src/pregunta/entities/pregunta.entity';
|
2025-03-26 14:39:56 -06:00
|
|
|
|
|
|
|
|
@Module({
|
2025-04-01 19:10:59 -06:00
|
|
|
imports: [
|
2025-04-02 11:54:17 -06:00
|
|
|
TypeOrmModule.forFeature([Opcion, Pregunta, PreguntaOpcion]),
|
2025-04-01 19:10:59 -06:00
|
|
|
PreguntaModule,
|
|
|
|
|
TipoPregunta
|
|
|
|
|
],
|
2025-03-26 14:39:56 -06:00
|
|
|
controllers: [OpcionController],
|
|
|
|
|
providers: [OpcionService],
|
2025-04-02 11:54:17 -06:00
|
|
|
exports: [OpcionService, TypeOrmModule],
|
2025-03-26 14:39:56 -06:00
|
|
|
})
|
2025-04-02 11:54:17 -06:00
|
|
|
|
2025-03-26 14:39:56 -06:00
|
|
|
export class OpcionModule {}
|