import { Module } from "@nestjs/common";
import { JobEventsController } from "./job-events.controller";
import { JobEventsService } from "./job-events.service";
import { PrismaModule } from "../prisma/prisma.module";
import { AuthModule } from "../auth/auth.module";

/**
 * Job Events Module
 *
 * Provides immutable event logging for runner jobs using event sourcing pattern.
 * Events are stored in PostgreSQL and provide a complete audit trail.
 */
@Module({
  imports: [PrismaModule, AuthModule],
  controllers: [JobEventsController],
  providers: [JobEventsService],
  exports: [JobEventsService],
})
export class JobEventsModule {}
