// src/chat/chat.module.ts
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ChatGateway } from './chat.gateway';
import { ChatService } from './chat.service';
import { ChatController } from './chat.controller';
import { ChatRoom } from './entities/chat-room.entity';
import { ChatRoomMember } from './entities/chat-room-member.entity';
import { ChatMessage } from './entities/chat-message.entity';
import { PushSubscription } from './entities/push-subscription.entity';  
import { PushService } from './push.service';                             

@Module({
  imports: [
    TypeOrmModule.forFeature(
      [ChatRoom, ChatRoomMember, ChatMessage, PushSubscription],          
      'scheme_dbs',
    ),
  ],
  providers:   [ChatGateway, ChatService, PushService],                   
  controllers: [ChatController],
  exports:     [ChatGateway, ChatService, PushService],                   
})
export class ChatModule {}