import type { DealImage } from "./DealImage"
import type { Comment } from "./Comment"
import type { DealVote } from "./DealVote"
import type { User } from "./User"

export type Deal = {
  id: number
  title: string
  description?: string
  url?: string
  price?: number
  createdAt: string
  updatedAt: string
  score: number
  userId: number

  // ilişkiler
  user?: Pick<User, "id" | "username" | "avatarUrl">
  images?: DealImage[]
  votes?: DealVote[]
  comments?: Comment[]
}
