import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Character } from '../characters/entities/character.entity';
import { TravelModule } from '../travel/travel.module';
import { LocationConnection } from './entities/location-connection.entity';
import { WorldController } from './world.controller';
import { WorldService } from './world.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([Character, LocationConnection]),
    TravelModule,
  ],
  controllers: [WorldController],
  providers: [WorldService],
})
export class WorldModule {}
