Continue Account log
This commit is contained in:
22
packages/database/prisma/schema/log.prisma
Normal file
22
packages/database/prisma/schema/log.prisma
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user