Continue Account log

This commit is contained in:
PxlLoewe
2026-01-30 00:25:51 +01:00
parent 005509598c
commit e4aae9804b
15 changed files with 224 additions and 24 deletions

View File

@@ -0,0 +1,22 @@
model Log {
id Int @id @default(autoincrement())
type LOG_TYPE
userId String?
browser String?
deviceId String?
ip String?
field String?
oldValue String?
newValue String?
timestamp DateTime @default(now())
User User? @relation(fields: [userId], references: [id], onDelete: Cascade)
@@map(name: "logs")
}
enum LOG_TYPE {
LOGIN
PROFILE_CHANGE
REGISTER
}