import { Module } from '@nestjs/common';

import { DashboardController } from './dashboard.controller';
import { DashboardRepository } from './dashboard.repository';
import { DashboardService } from './dashboard.service';

// PrismaModule and CaslModule are both @Global(), so there is nothing to
// import here — the repository can inject PrismaService and the controller
// can use the CASL guards out of the box.
@Module({
  controllers: [DashboardController],
  providers: [DashboardService, DashboardRepository],
})
export class DashboardModule {}
