Merge branch 'Enhanced-Audit-log-for-user-Profiles' of https://github.com/VAR-Virtual-Air-Rescue/var-monorepo into Enhanced-Audit-log-for-user-Profiles

This commit is contained in:
PxlLoewe
2026-01-30 00:27:09 +01:00

View File

@@ -1,11 +1,12 @@
model Penalty {
model AuditLog {
id Int @id @default(autoincrement())
userId String
createdUserId String?
reportId Int?
type PenaltyType
reason String
// Generalized action type to cover penalties and user history events
action AuditLogAction?
reason String?
until DateTime?
suspended Boolean @default(false)
@@ -18,9 +19,13 @@ model Penalty {
Report Report? @relation(fields: [reportId], references: [id])
}
enum PenaltyType {
enum AuditLogAction {
// Penalty actions
KICK
TIME_BAN
PERMISSIONS_REVOCED
BAN
// User history events
USER_DELETED
USER_PROFILE_UPDATED
}