24 lines
492 B
TypeScript
24 lines
492 B
TypeScript
import "dotenv/config";
|
|
import { defineConfig, env } from "prisma/config";
|
|
|
|
/**
|
|
* Prisma Konfiguration für Aufgabenplaner
|
|
* - Schema-Pfad
|
|
* - Migrations-Pfad
|
|
* - Datasource URL
|
|
* - Seed-Kommando
|
|
*/
|
|
export default defineConfig({
|
|
schema: "prisma/schema.prisma",
|
|
migrations: {
|
|
path: "prisma/migrations",
|
|
},
|
|
engine: "classic",
|
|
datasource: {
|
|
url: env("DATABASE_URL"),
|
|
},
|
|
seed: {
|
|
command: 'ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts',
|
|
},
|
|
});
|