import { IsInt, IsOptional, IsString, Max, Min } from "class-validator";

export class AdminSearchDto {
    @IsOptional() @IsString() owner_type?: string;
    @IsOptional() @IsString() owner_id?: string;
    @IsOptional() date_from?: string;
    @IsOptional() date_to?: string;
    @IsOptional() @IsInt() @Min(1) page?: number = 1;
    @IsOptional() @IsInt() @Min(1) @Max(200) page_size?: number = 50;
}