From 236c39b38a86dc8cd45dcef7af685eda71a1c522 Mon Sep 17 00:00:00 2001 From: alfazh123 Date: Thu, 21 Dec 2023 16:51:36 +0700 Subject: [PATCH] fix: schema for mongodb --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index c642c14..5eeb37f 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -29,7 +29,7 @@ enum RoleType { } model KegiatanLab { - id Int @id @map("_id") + id String @id @default(auto()) @map("_id") @db.ObjectId jenis_kegiatan ActivityType nama_kegiatan String nama_pemohon String @@ -44,7 +44,7 @@ model KegiatanLab { } model User { - id Int @id @map("_id") + id String @id @default(auto()) @map("_id") @db.ObjectId email String @unique role RoleType created_at DateTime @default(now())