import { IsString, IsOptional, IsUUID } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateRelationshipDto {
  @ApiProperty({ format: 'uuid', description: 'ID des verknuepften Unternehmens' })
  @IsUUID()
  relatedCompanyId!: string;

  @ApiProperty({ format: 'uuid', description: 'ID des Beziehungstyps' })
  @IsUUID()
  relationshipTypeId!: string;

  @ApiPropertyOptional({ description: 'Notizen zur Beziehung' })
  @IsOptional()
  @IsString()
  notes?: string;
}
