27 lines
743 B
TypeScript
27 lines
743 B
TypeScript
![]() |
import { Module, Global } from '@nestjs/common';
|
||
|
import { ConfigModule } from '@nestjs/config';
|
||
|
import { PrismaService } from './prisma.service';
|
||
|
import { UserRepository } from './repositories/user.repository';
|
||
|
import { BatchRepository } from './repositories/batch.repository';
|
||
|
import { ImageRepository } from './repositories/image.repository';
|
||
|
import { PaymentRepository } from './repositories/payment.repository';
|
||
|
|
||
|
@Global()
|
||
|
@Module({
|
||
|
imports: [ConfigModule],
|
||
|
providers: [
|
||
|
PrismaService,
|
||
|
UserRepository,
|
||
|
BatchRepository,
|
||
|
ImageRepository,
|
||
|
PaymentRepository,
|
||
|
],
|
||
|
exports: [
|
||
|
PrismaService,
|
||
|
UserRepository,
|
||
|
BatchRepository,
|
||
|
ImageRepository,
|
||
|
PaymentRepository,
|
||
|
],
|
||
|
})
|
||
|
export class DatabaseModule {}
|