import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ParticipantService } from './participant.service'; import { ParticipantController } from './participant.controller'; import { Participant } from './entity/participant.entity'; @Module({ imports: [ TypeOrmModule.forFeature([Participant]), ], controllers: [ParticipantController], providers: [ParticipantService], }) export class ParticipantModule {}