import { type ListingStatus, type TransactionType, type PropertyType } from '@prisma/client';

export class SearchListingsQuery {
  constructor(
    public readonly status?: ListingStatus,
    public readonly transactionType?: TransactionType,
    public readonly propertyType?: PropertyType,
    public readonly city?: string,
    public readonly district?: string,
    public readonly minPrice?: bigint,
    public readonly maxPrice?: bigint,
    public readonly minArea?: number,
    public readonly maxArea?: number,
    public readonly bedrooms?: number,
    public readonly page: number = 1,
    public readonly limit: number = 20,
  ) {}
}
