import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";

import { ConsignmentsController } from "./consignments.controller";
import { ConsignmentsRepository } from "./consignments.repository";
import { ConsignmentsService } from "./consignments.service";
import { Consignment } from "./entities/consignment.entity";

@Module({
  imports: [TypeOrmModule.forFeature([Consignment])],
  controllers: [ConsignmentsController],
  providers: [ConsignmentsService, ConsignmentsRepository],
  exports: [ConsignmentsService],
})
export class ConsignmentsModule {}
