Form-Service/src/form/form.module.ts

31 lines
1.0 KiB
TypeScript

import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { FormService } from './form.service';
import { FormController } from './form.controller';
import { Form } from './entity/form.entity';
import { FormPage } from '../formPage/entity/formPage.entity';
import { FormSection } from '../formSection/entity/formSection.entity';
import { Attachment } from '../attachment/entity/attachment.entity';
import { Question } from '../question/entity/question.entity';
import { Answer } from '../answer/entity/answer.entity';
import { Option } from '../option/entity/option.entity';
import { Participant } from '../participant/entity/participant.entity'; // Assuming Participant entity exists
@Module({
imports: [
TypeOrmModule.forFeature([
Form,
FormPage,
FormSection,
Attachment,
Question,
Answer,
Option,
Participant, // Include Participant entity
]),
],
controllers: [FormController],
providers: [FormService],
})
export class FormModule {}