it_solutions_test/prisma.config.ts
Илья Братских bd22447bd3 Add a GraphQL digital card that migrates and seeds itself on startup.
The NestJS API serves the public profile through Apollo Sandbox and loads only the relations selected by the query.
2026-11-02 05:30:54 +03:00

16 lines
331 B
TypeScript

import 'dotenv/config';
import { defineConfig } from 'prisma/config';
const databaseUrl =
process.env.DATABASE_URL ?? 'postgresql://card:card@localhost:5432/card';
export default defineConfig({
schema: 'prisma/schema.prisma',
migrations: {
path: 'prisma/migrations',
},
datasource: {
url: databaseUrl,
},
});