mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-06-03 20:13:00 +00:00
8 lines
325 B
SQL
8 lines
325 B
SQL
-- name: ListUpcomingBookingsByTenant :many
|
|
SELECT id, tenant_id, service_id, class_session_id, staff_id, location_id, booking_mode, customer_name, customer_email, starts_at, ends_at, status, reference, notes, created_at, updated_at
|
|
FROM bookings
|
|
WHERE tenant_id = $1 AND starts_at >= now()
|
|
ORDER BY starts_at ASC
|
|
LIMIT $2;
|
|
|