feat(api): NestJS standalone 骨架 + Drizzle/postgres.js 接入

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-20 18:56:50 +08:00
parent 6725bf0024
commit 514f37301e
9 changed files with 1367 additions and 10 deletions
+9
View File
@@ -0,0 +1,9 @@
import './src/db/env.js'
import { defineConfig } from 'drizzle-kit'
export default defineConfig({
dialect: 'postgresql',
schema: './src/db/schema.ts',
out: './drizzle',
dbCredentials: { url: process.env.DATABASE_URL! },
})