mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: init database package
This commit is contained in:
1 parent
4cf79a164c
commit
ba5026fa56
14 files changed
+2375
-12
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import 'dotenv/config';
|
||||
import { definePrismaConfig } from '@prisma/cli-engine';
|
||||
import { defineConfig as ormConfig } from '@prisma/orm-postgres/config';
|
||||
|
||||
export default definePrismaConfig({
|
||||
orm: ormConfig({
|
||||
contract: "./src/prisma/contract.prisma",
|
||||
db: {
|
||||
connection: process.env['DATABASE_URL']!,
|
||||
},
|
||||
}),
|
||||
});
|
||||
Reference in new issue
Block a user