import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { TransportController } from './transport.controller';
import { TransportService } from './transport.service';
import { TransportRoute, TransportRouteSchema } from './schemas/transport-route.schema';
import { TransportAssignment, TransportAssignmentSchema } from './schemas/transport-assignment.schema';
import { Student, StudentSchema } from '../students/schemas/student.schema';
import { AcademicYear, AcademicYearSchema } from '../academic-year/academic-year.schema';
import { AuditModule } from '../audit/audit.module';

@Module({
    imports: [
        MongooseModule.forFeature([
            { name: TransportRoute.name, schema: TransportRouteSchema },
            { name: TransportAssignment.name, schema: TransportAssignmentSchema },
            { name: Student.name, schema: StudentSchema },
            { name: AcademicYear.name, schema: AcademicYearSchema },
        ]),
        AuditModule,
    ],
    controllers: [TransportController],
    providers: [TransportService],
    exports: [TransportService],
})
export class TransportModule {}
