16 lines
327 B
TypeScript
16 lines
327 B
TypeScript
|
|
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
|
||
|
|
}
|
||
|
|
|