import { Module } from '@nestjs/common'; import { OpcionService } from './opcion.service'; import { OpcionController } from './opcion.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Opcion } from './entities/opcion.entity'; @Module({ imports: [TypeOrmModule.forFeature([Opcion])], // Importa el repositorio de Opcion controllers: [OpcionController], providers: [OpcionService], exports: [OpcionService, TypeOrmModule] }) export class OpcionModule {}