Skip to content

Commit

Permalink
fix: schema for mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
alfazh123 committed Dec 21, 2023
1 parent 5240f32 commit 236c39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())
Expand Down

0 comments on commit 236c39b

Please sign in to comment.