import { IsString, Matches, MaxLength } from 'class-validator';

/** PATCH /bookings/:id/guest-mobile — Guest No. edited on the Movement
 *  Dashboard. Saved on the booking, so every MD row of it shows it. */
export class UpdateGuestMobileDto {
  @IsString()
  @MaxLength(20)
  @Matches(/^\+?[0-9][0-9 -]{5,19}$/, { message: 'Enter a valid phone number' })
  guest_mobile: string;
}
