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

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

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

    @IsString()
    @IsNotEmpty()
    description: string;

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

    @IsOptional()
    @IsEnum(['PENDING', 'APPROVED', 'REJECTED', 'REIMBURSED'])
    status?: 'PENDING' | 'APPROVED' | 'REJECTED' | 'REIMBURSED';
}
