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

export class FilterTransportAssignmentsDto {
    @IsOptional() @IsMongoId() academicYearId?: string;
    @IsOptional() @IsMongoId() routeId?: string;
    @IsOptional() @IsMongoId() studentId?: string;
    @IsOptional() @IsString() @IsIn(['pending', 'paid', 'overdue']) status?: string;
    @IsOptional() @IsString() @MaxLength(50) month?: string;
    @IsOptional() @IsString() @IsIn(['true', 'false']) isActive?: string;
}
