import { IsDateString, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';

export class CreateIncentiveDto {
    @IsString()
    @IsNotEmpty()
    userId: string;

    @IsNumber()
    @IsNotEmpty()
    targetAmount: number;

    @IsNumber()
    @IsOptional()
    rewardAmount?: number;

    @IsNotEmpty()
    @IsEnum(['DAILY', 'MONTHLY'])
    type: 'DAILY' | 'MONTHLY';

    @IsDateString()
    @IsNotEmpty()
    startDate: string;

    @IsDateString()
    @IsNotEmpty()
    endDate: string;
}
