Add DB Seed to Prisma

This commit is contained in:
Michael Dausmann
2023-04-02 18:50:21 +10:00
parent 8fc900fbf1
commit 10b0d6da3d
5 changed files with 341 additions and 29 deletions

View File

@@ -1,5 +1,8 @@
{
"private": true,
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
@@ -10,8 +13,11 @@
"devDependencies": {
"@nuxtjs/supabase": "^0.3.1",
"@prisma/client": "^4.9.0",
"@types/node": "^18.15.11",
"nuxt": "^3.1.1",
"prisma": "^4.9.0"
"prisma": "^4.9.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
},
"dependencies": {
"@pinia/nuxt": "^0.4.6",