Skip to content

Commit

Permalink
add mogodb
Browse files Browse the repository at this point in the history
  • Loading branch information
alfazh123 committed Dec 21, 2023
1 parent 19d614c commit 5f7afa3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"chart.js": "^4.4.1",
"dayjs": "^1.11.10",
"moment": "^2.29.4",
"mongodb": "^6.3.0",
"next": "^14.0.3",
"next-auth": "^4.24.5",
"react": "18.2.0",
Expand Down
5 changes: 0 additions & 5 deletions prisma/client/index.js

This file was deleted.

6 changes: 3 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ generator client {
}

datasource db {
provider = "postgresql"
provider = "mongodb"
url = env("DATABASE_URL")
}

Expand All @@ -29,7 +29,7 @@ enum RoleType {
}

model KegiatanLab {
id Int @id @default(autoincrement())
id Int @id @map("_id")
jenis_kegiatan ActivityType
nama_kegiatan String
nama_pemohon String
Expand All @@ -44,7 +44,7 @@ model KegiatanLab {
}

model User {
id Int @id @default(autoincrement())
id Int @id @map("_id")
email String @unique
role RoleType
created_at DateTime @default(now())
Expand Down
2 changes: 2 additions & 0 deletions src/pages/borrow/form/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

import LabRequestForm from '@/ui/components/borrow/LabRequestForm'
import MainLayout from '@/ui/MainLayout'

Expand Down

0 comments on commit 5f7afa3

Please sign in to comment.