import { Module } from '@nestjs/common';
import { NotificationsModule } from '../notifications/notifications.module';
import { WalletsModule } from '../wallets/wallets.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Bill } from '../entities/bill.entity';
import { BillItem } from '../entities/bill-item.entity';
import { RoomExpense } from '../entities/room-expense.entity';
import { PersonalExpense } from '../entities/personal-expense.entity';
import { Occupancy } from '../entities/occupancy.entity';
import { Room } from '../entities/room.entity';
import { Student } from '../entities/student.entity';
import { Deposit } from '../entities/deposit.entity';
import { BillsService } from './bills.service';
import { BillsExportService } from './bills-export.service';
import { BillsController } from './bills.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      Bill,
      BillItem,
      RoomExpense,
      PersonalExpense,
      Occupancy,
      Room,
      Student,
      Deposit,
    ]),
    NotificationsModule,
    WalletsModule,
  ],
  controllers: [BillsController],
  providers: [BillsService, BillsExportService],
  exports: [BillsService],
})
export class BillsModule {}
