Admin: panel silowni jak w apce + wyznaczanie wlasciciela (grupowane menu kontekstowe z modalami, sekcja Wlasciciele)

This commit is contained in:
Tilumca
2026-10-15 00:02:40 +02:00
parent c82465ca69
commit 320682d37f
13 changed files with 973 additions and 268 deletions

View File

@@ -152,6 +152,15 @@ export interface Gym {
coverPhoto: string | null;
photos?: GymPhoto[];
_count?: { memberships: number };
/** Właściciele (rola OWNER) — tylko odpowiedź GET /admin/gyms/:id. */
owners?: GymOwner[];
}
export interface GymOwner {
id: string;
firstName: string | null;
lastName: string | null;
email: string;
}
export type ClaimStatus = 'PENDING' | 'APPROVED' | 'REJECTED';