Files
api-AT/src/equipo/dto/create-equipo.dto.ts
T
2026-02-11 16:48:05 -06:00

36 lines
589 B
TypeScript

import { IsBoolean, IsInt, IsNotEmpty, IsOptional, IsString } from "class-validator";
export class CreateEquipoDto {
@IsInt()
@IsNotEmpty()
id_area_ubicacion: number;
@IsInt()
@IsOptional()
id_equipo: number;
@IsInt()
@IsNotEmpty()
id_plataforma: number;
@IsString()
@IsOptional()
ip: string;
@IsString()
@IsNotEmpty()
nombre_equipo: string;
@IsString()
@IsNotEmpty()
ubicacion: string;
}
export class UpdateAreaEquiposDto {
@IsInt()
id_area_ubicacion: number;
@IsBoolean()
activo: boolean;
}