targo-backend/src/modules/shift-codes/dtos/create-shift-codes.dto.ts
2025-07-24 09:55:29 -04:00

21 lines
499 B
TypeScript

import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString } from "class-validator";
export class CreateShiftCodeDto {
@ApiProperty({
example: 'Regular or Night or Emergency, etc...',
description: 'Type of shifts for an account perception',
})
@IsString()
@IsNotEmpty()
shift_type: string;
@ApiProperty({
example: 'G1, G2, G3, etc...',
description: 'bank`s code related to the type of shift',
})
@IsString()
@IsNotEmpty()
bank_code: string;
}