Type Alias: ComposedBookingRow
type ComposedBookingRow = Prisma.BookingsGetPayload<{
include: {
group: true;
offers: {
where: {
offerStatus: {
in: ["queued", "offered"];
};
};
};
schedule: true;
};
}> & {
bookingType: BookingTypes;
};Defined in: server/bookings/booking-crud-repository.ts:64
The hydrated composed host: bookings ⋈ component rows + the (relation-less)
type row. Component includes grow as later PRs add tables (seats in PR 14).
bookingType rides along so the transition core never issues a separate type
read inside the capacity-lock critical section.
offers carries the active waitlist offer rows (§6.4): the §5.2
offered→confirmed structural guard reads offerExpiresAt off the HYDRATED
host (toHost in booking-service.ts), so a bare row would evaluate the guard
as now < undefined — a hydration bug, not a passing guard.
Type Declaration
bookingType
bookingType: BookingTypes;