import { Prisma } from '../generated/client'; /** Product loaded with its versions (`include: { versions: true }`). */ export type ProductWithVersions = Prisma.ProductGetPayload<{ include: { versions: true } }>; /** * Order to save with its lines. Lines are kept apart from the nested Prisma input so that the repository can link * them to the current catalog (`productVersion`) and replace them on update. */ export type OrderWithLinesInput = Omit & { lines: Prisma.OrderLineCreateWithoutOrderInput[]; };