Include Profile log in renamed penalty model -> Audit log

This commit is contained in:
PxlLoewe
2026-01-21 19:38:55 +01:00
parent b250fa46c2
commit 005509598c
7 changed files with 62 additions and 22 deletions

View File

@@ -1,5 +1,27 @@
import { User } from "../../generated/client";
// USer History
interface UserDeletedEvent {
type: "USER_DELETED";
reason: string;
date: string;
by: string;
}
interface UserProfileUpdatedEvent {
type: "USER_PROFILE_UPDATED";
changes: {
field: string;
oldValue: string;
newValue: string;
};
date: string;
by: string;
}
export type UserHistoryEvent = UserDeletedEvent | UserProfileUpdatedEvent;
export interface PublicUser {
firstname: string;
lastname: string;