Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 9x 9x 9x 9x 9x 9x 9x 9x | import { IsNotEmpty, IsNumber, IsString, Max, Min } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateSlotDto {
@ApiProperty()
@IsNotEmpty()
@IsString()
bandId: string;
@ApiProperty()
@IsNotEmpty()
@IsString()
description: string;
@ApiProperty()
@IsNotEmpty()
@IsString()
instrumentId: string;
@ApiProperty()
@IsNotEmpty()
@IsNumber()
@Min(1, { message: 'Skill level must be greater than 0' })
@Max(5, { message: 'Skill level cannot be greater than 5' })
skillLevel: number;
@ApiProperty()
@IsNotEmpty()
@IsString()
title: string;
}
|