Silownie: instancje wyposazenia z nadpisywanym spec i zdjeciami per instancja (koniec unikalnosci typu katalogowego; parametry i galeria zdjec na pozycji sprzetu, PATCH/DELETE po id instancji)
This commit is contained in:
@@ -100,13 +100,26 @@ export interface Equipment {
|
||||
gymsCount?: number;
|
||||
}
|
||||
|
||||
/** A gym's equipment instance: how many units of a catalog item the gym has. */
|
||||
/** Zdjęcie instancji urządzenia siłowni; `url` = ścieżka względna API. */
|
||||
export interface EquipmentPhoto {
|
||||
id: string;
|
||||
url: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A gym's equipment instance: a concrete set of units of a catalog type.
|
||||
* `spec` overrides the catalog spec; null = inherit it.
|
||||
*/
|
||||
export interface GymEquipment {
|
||||
id: string;
|
||||
gymId: string;
|
||||
equipmentId: string;
|
||||
quantity: number;
|
||||
spec: EquipmentSpec | null;
|
||||
equipment: Equipment;
|
||||
/** Zdjęcia (detal siłowni /admin/gyms/:id); listy mogą ich nie zawierać. */
|
||||
photos?: EquipmentPhoto[];
|
||||
}
|
||||
|
||||
export interface Exercise {
|
||||
|
||||
Reference in New Issue
Block a user