feat: 建立漂流瓶权威数据模型

This commit is contained in:
root
2026-09-14 11:10:57 +08:00
parent 18450201dc
commit a2a5e4bd0f
11 changed files with 1926 additions and 11 deletions
+12
View File
@@ -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();
}
}