prisma with psotgresql

This commit is contained in:
2025-11-23 23:53:13 +08:00
parent d88c2057c0
commit 978158353c
25 changed files with 1718 additions and 407 deletions

View File

@@ -0,0 +1,17 @@
import { Global, Module } from '@nestjs/common';
import { PrismaService } from './prisma.service';
/**
* Database Module
*
* A global module that provides database access through PrismaService.
* This module is marked as @Global() so PrismaService is available
* throughout the application without needing to import DatabaseModule
* in every feature module.
*/
@Global()
@Module({
providers: [PrismaService],
exports: [PrismaService],
})
export class DatabaseModule {}