import { IsEmail, IsOptional, IsString, IsDateString } from 'class-validator';

export class CreateVendorDto {
  @IsString()
  name: string;

  @IsOptional()
  @IsString()
  contactPerson?: string;

  @IsOptional()
  @IsEmail()
  email?: string;

  @IsOptional()
  @IsString()
  phone?: string;

  @IsOptional()
  @IsDateString()
  contractStart?: Date;

  @IsOptional()
  @IsDateString()
  contractEnd?: Date;

  @IsOptional()
  @IsString()
  notes?: string;
}
