import { Module } from '@nestjs/common';
import { ChatController } from './chat.controller';
import { ChatService } from './chat.service';
import { ChatGateway } from './chat.gateway';
import { UsersModule } from 'src/users/users.module';

import { TypeOrmModule } from '@nestjs/typeorm';
import { Chatroom } from './entities/chatroom.entity';
import { User } from 'src/users/entities/user.entity';

@Module({
	imports: [
		TypeOrmModule.forFeature([Chatroom, User]),
		UsersModule,
	],
  controllers: [
		ChatController,
	],
	exports: [
	],
	providers: [
		ChatService,
		ChatGateway,
	],
})

export class ChatModule {}

