import { IsOptional, IsString, IsIn, IsMongoId } from 'class-validator';

export class FilterAssignmentsDto {
    @IsOptional() @IsMongoId() academicYearId?: string;
    @IsOptional() @IsString() classId?: string;  // classId can be a non-MongoId string (e.g., custom IDs)
    @IsOptional() @IsMongoId() studentId?: string;
    @IsOptional() @IsMongoId() feeStructureId?: string;
    @IsOptional() @IsString() @IsIn(['pending', 'partial', 'paid', 'overdue']) status?: string;
}
