import { Transform } from 'class-transformer';
import { IsNotEmpty } from 'class-validator';

export class CreateAppUsersStepDto {
  @IsNotEmpty({ message: 'User id Should Not be Empty.' })
  app_user_id: string;

  @IsNotEmpty({ message: 'Steps Should Not be Empty.' })
  @Transform(({ value }) => value.trim().replace(/\s+/g, ' '))
  steps: string;

  date: Date;
}
