Files
api-AT/src/detalle_servicio/dto/create-detalle_servicio.dto.ts
T
2025-09-10 17:32:00 -06:00

31 lines
500 B
TypeScript

import { Type } from 'class-transformer';
import { IsDate, IsInt, IsNotEmpty, IsOptional, Min } from 'class-validator';
export class CreateDetalleServicioDto {
@IsInt()
@Min(0)
@IsNotEmpty()
numero_hojas: number;
@IsOptional()
@Type(() => Date)
@IsDate()
fecha_operacion?: Date;
@IsInt()
@IsNotEmpty()
id_cuenta: number;
@IsInt()
@IsNotEmpty()
id_servicio: number;
@IsInt()
@IsNotEmpty()
id_usuario: number;
@IsOptional()
@IsInt()
id_periodo?: number;
}