Dashboard Admin

This commit is contained in:
2025-04-21 17:49:13 +08:00
parent cdfbbb412c
commit 7b0fb9332e
79 changed files with 1764 additions and 30 deletions

View File

@@ -17,3 +17,8 @@ model Potensi {
name String @unique
}
model LandingPage_Layanan {
id String @id @default(cuid())
deksripsi String
}

View File

@@ -33,6 +33,22 @@ import prisma from '@/lib/prisma';
}
console.log("potensi success ...")
// for (const lpl of ) {
// await prisma.landingPage_Layanan.upsert({
// where: {
// id: lpl.id
// },
// update: {
// deksripsi: lpl.deksripsi
// },
// create: {
// deksripsi: lpl.deksripsi
// }
// })
// }
// console.log("landing page success ...")
})().then(() => prisma.$disconnect()).catch((e) => {
console.error(e)
prisma.$disconnect()