Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 5e81425

Browse files
author
Tischa
committed
Create seed
1 parent ed6df99 commit 5e81425

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

server/prisma/seed.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { PrismaClient } from '@prisma/client';
2+
const prisma = new PrismaClient();
3+
4+
async function main() {}
5+
6+
main()
7+
.catch((e) => {
8+
console.error(e);
9+
process.exit(1);
10+
})
11+
.finally(async () => {
12+
await prisma.$disconnect();
13+
});

0 commit comments

Comments
 (0)