You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
389 B
13 lines
389 B
const { PrismaClient } = require("@prisma/client");
|
|
|
|
// npx prisma introspect
|
|
// npx prisma generate
|
|
// npx prisma migrate dev --name init -> ensures that db is in sync with schema
|
|
// npx prisma migrate reset -> resets the db
|
|
|
|
const logLevels = ["error", "info", "warn"]; // add "query" to debug query logs
|
|
const prisma = new PrismaClient({
|
|
log: logLevels,
|
|
});
|
|
|
|
module.exports = prisma;
|