feat: 建立漂流瓶权威数据模型
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { PrismaClient } from "@prisma/client";
|
||||
|
||||
/** Lightweight database lifecycle wrapper; Nest hooks can call these methods later. */
|
||||
export class PrismaService extends PrismaClient {
|
||||
async onModuleInit(): Promise<void> {
|
||||
await this.$connect();
|
||||
}
|
||||
|
||||
async onModuleDestroy(): Promise<void> {
|
||||
await this.$disconnect();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user