initial webapp
This commit is contained in:
8
lib/db/index.ts
Normal file
8
lib/db/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { drizzle } from 'drizzle-orm/node-postgres';
|
||||
import * as schema from './schema';
|
||||
import 'dotenv/config';
|
||||
|
||||
export const db = drizzle(process.env.POSTGRES_URL!, { schema });
|
||||
|
||||
// Re-export schema types for convenience
|
||||
export * from './schema';
|
Reference in New Issue
Block a user