import { Global, Module } from "@nestjs/common";
import { PrismaService } from "./prisma.service.js";
import { TransactionService } from "./services/transaction.service.js";
import { DistributedTransactionService } from "./services/distributed-transaction.service.js";
import { IdMappingRepository } from "./repositories/id-mapping.repository.js";
import { AuditLogRepository } from "./repositories/audit-log.repository.js";
import { SimVoiceOptionsRepository } from "./repositories/sim-voice-options.repository.js";

@Global()
@Module({
  providers: [
    PrismaService,
    TransactionService,
    DistributedTransactionService,
    IdMappingRepository,
    AuditLogRepository,
    SimVoiceOptionsRepository,
  ],
  exports: [
    PrismaService,
    TransactionService,
    DistributedTransactionService,
    IdMappingRepository,
    AuditLogRepository,
    SimVoiceOptionsRepository,
  ],
})
export class PrismaModule {}
