import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';
import { SponsorshipDetailDTO } from './SponsorshipDetailDTO';

export class SponsorSponsorshipsDTO {
  @ApiProperty()
  @IsString()
  sponsorId: string = '';

  @ApiProperty()
  @IsString()
  sponsorName: string = '';

  @ApiProperty({ type: [SponsorshipDetailDTO] })
  sponsorships: SponsorshipDetailDTO[] = [];

  @ApiProperty()
  summary: {
    totalSponsorships: number;
    activeSponsorships: number;
    totalInvestment: number;
    totalPlatformFees: number;
    currency: string;
  } = {
    totalSponsorships: 0,
    activeSponsorships: 0,
    totalInvestment: 0,
    totalPlatformFees: 0,
    currency: ''
  };
}