import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { TeamWalletTransactionEnum } from '../team-wallet-transaction.enum';

export class CreateTeamWalletTransactionDto {
  @ApiProperty({ example: 0 })
  @IsNotEmpty()
  teamId: number;

  @ApiProperty({ example: 'Extra teuer wegen diskutierens' })
  note?: string | null;

  @ApiProperty({ example: 'isotimestring' })
  date: string;

  @ApiProperty({ example: 10 })
  @IsNotEmpty()
  amount: number;

  @ApiProperty({ enum: TeamWalletTransactionEnum })
  @IsNotEmpty()
  type: TeamWalletTransactionEnum;
}
