Booking Repository
Component Detail
Data Layer
low complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Data access layer for demo booking leads. Provides typed create and read operations against the bookings table in PostgreSQL, ensuring all lead records are persisted with timestamps for sales team follow-up.
booking-repository
Responsibilities
- Insert new booking records into the database
- Query bookings by status for sales pipeline review
Interfaces
create(data: BookingInput): Promise<Booking>
findById(id: string): Promise<Booking | null>
findAll(filters?: BookingFilters): Promise<Booking[]>