Files
backend/src/representations/dto/update-representation.dto.ts
T

27 lines
402 B
TypeScript

import { IsOptional, IsString, MinLength } from 'class-validator';
export class UpdateRepresentationDto {
@IsOptional()
@IsString()
@MinLength(1)
name?: string;
@IsOptional()
@IsString()
owner?: string;
@IsOptional()
@IsString()
@MinLength(1)
mobile?: string;
@IsOptional()
@IsString()
@MinLength(1)
city?: string;
@IsOptional()
@IsString()
address?: string;
}