upd: user dan log activity

This commit is contained in:
2026-04-13 14:48:49 +08:00
parent 315ecc565e
commit c0205ce2bf
8 changed files with 467 additions and 228 deletions

View File

@@ -35,6 +35,14 @@ enum BugStatus{
CLOSED
}
enum LogType{
CREATE
UPDATE
DELETE
LOGIN
LOGOUT
}
model User {
id String @id @default(uuid())
name String
@@ -42,6 +50,7 @@ model User {
password String
role Role @default(USER)
active Boolean @default(true)
image String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -69,7 +78,7 @@ model Session {
model Log {
id String @id @default(uuid())
userId String
type String
type LogType
message String
createdAt DateTime @default(now())