Files
api-AT/src/equipo/dto/create-equipo.dto.ts
T

36 lines
589 B
TypeScript
Raw Normal View History

2026-02-11 16:48:05 -06:00
import { IsBoolean, IsInt, IsNotEmpty, IsOptional, IsString } from "class-validator";
2026-01-27 17:51:09 -06:00
export class CreateEquipoDto {
2026-02-11 16:48:05 -06:00
@IsInt()
@IsNotEmpty()
id_area_ubicacion: number;
2026-01-27 17:51:09 -06:00
2026-02-11 16:48:05 -06:00
@IsInt()
@IsOptional()
id_equipo: number;
2026-01-27 17:51:09 -06:00
2026-02-11 16:48:05 -06:00
@IsInt()
@IsNotEmpty()
id_plataforma: number;
2026-01-27 17:51:09 -06:00
2026-02-11 16:48:05 -06:00
@IsString()
@IsOptional()
ip: string;
2026-01-27 17:51:09 -06:00
2026-02-11 16:48:05 -06:00
@IsString()
@IsNotEmpty()
nombre_equipo: string;
2026-01-27 17:51:09 -06:00
2026-02-11 16:48:05 -06:00
@IsString()
@IsNotEmpty()
ubicacion: string;
}
export class UpdateAreaEquiposDto {
@IsInt()
id_area_ubicacion: number;
@IsBoolean()
activo: boolean;
2026-01-27 17:51:09 -06:00
}