import { z } from 'zod';

export const createBookingSchema = z.object({
  rentalListingId: z.string().min(1),
  periodType: z.enum(['DAILY', 'MONTHLY']),
  startDate: z.string().datetime(),
  endDate: z.string().datetime(),
  message: z.string().max(1000).optional(),
});

export const rejectBookingSchema = z.object({
  reason: z.string().min(1).max(500),
});

export const cancelBookingSchema = z.object({
  reason: z.string().min(1).max(500),
});
