import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { User, UserSchema } from '../schemas/user.schema.js'
import { ActorService } from './actor.service.js'
import { JwtAuthGuard } from './jwt-auth.guard.js'
import { OperatorGuard } from './operator.guard.js'

@Module({
  imports: [MongooseModule.forFeature([{ name: User.name, schema: UserSchema }])],
  providers: [JwtAuthGuard, OperatorGuard, ActorService],
  exports: [JwtAuthGuard, OperatorGuard, ActorService],
})
export class AuthModule {}
