Initial commit: Fahrrad Verschleißteile Tracker
- Next.js SPA mit Bun Runtime - Prisma mit SQLite Datenbank - Vollständige CRUD-Operationen für Fahrräder, Verschleißteile und Wartungshistorie - Warnsystem für bevorstehende Wartungen - Statistik-Features (Gesamtkosten, durchschnittliche Lebensdauer) - Zod-Validierung für alle API-Requests - Umfassende Test-Suite (41 Tests)
This commit is contained in:
15
types/index.ts
Normal file
15
types/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Bike, WearPart, MaintenanceHistory } from '@prisma/client'
|
||||
|
||||
export type BikeWithParts = Bike & {
|
||||
wearParts: WearPart[]
|
||||
}
|
||||
|
||||
export type WearPartWithHistory = WearPart & {
|
||||
maintenanceHistory: MaintenanceHistory[]
|
||||
bike: Bike
|
||||
}
|
||||
|
||||
export type MaintenanceHistoryWithPart = MaintenanceHistory & {
|
||||
wearPart: WearPart
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user