import { Module } from "@nestjs/common";
import { MongooseModule } from "@nestjs/mongoose";
import { ExecutionController } from "./execution.controller.js";
import { FunctionExecutionService } from "./execution.service.js";
import { FunctionsService } from "./functions.service.js";
import { Project, ProjectSchema } from "../schemas/project.schema.js";
import { Function, FunctionSchema } from "../schemas/function.schema.js";

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Project.name, schema: ProjectSchema },
      { name: Function.name, schema: FunctionSchema },
    ]),
  ],
  controllers: [ExecutionController],
  providers: [FunctionExecutionService, FunctionsService],
})
export class FunctionsModule {}
