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

export class RegisterDeviceDto {
  @IsString()
  @MaxLength(4096)
  fcmToken!: string;

  @IsEnum(['android', 'ios', 'web'])
  platform!: 'android' | 'ios' | 'web';

  @IsOptional()
  @IsString()
  @MaxLength(160)
  deviceId?: string;

  @IsOptional()
  @IsString()
  @MaxLength(60)
  appVersion?: string;

  @IsOptional()
  @IsString()
  @MaxLength(20)
  locale?: string;
}
