Admin: widacznosc konta usera - lastLoginAt + IP w logach logowania + kafel historii konta (kto edytowal dane, historia kar) ; GET /admin/users/:id/activity

This commit is contained in:
tisachi
2026-10-23 01:17:24 +02:00
parent e29f7eb0ea
commit 92cc87c023
23 changed files with 421 additions and 11 deletions

View File

@@ -36,6 +36,8 @@ export interface User {
status: 'ACTIVE' | 'SUSPENDED' | 'BANNED';
suspensionUntil: string | null;
restrictionReason: string | null;
/** Data ostatniego udanego logowania (login, nie odświeżanie tokenu); null = nigdy. */
lastLoginAt?: string | null;
createdAt: string;
memberships?: { gymId: string; roles: GymRole[]; gym: Gym }[];
}