upd: bug list

Deskripsi:
- tampilan list bug error
- tampilan tambah bug
- connected to database; list and create

No Issues
This commit is contained in:
2026-04-13 15:17:46 +08:00
parent c0205ce2bf
commit 14a9e2c687
6 changed files with 578 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "bug_log" ALTER COLUMN "userId" DROP NOT NULL;

View File

@@ -125,13 +125,13 @@ model BugImage {
model BugLog {
id String @id @default(uuid())
bugId String
userId String
userId String?
status BugStatus
description String
createdAt DateTime @default(now())
bug Bug @relation(fields: [bugId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
user User? @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map("bug_log")
}