export interface Sku {
  skuId: string;
  specName: string;
  price: number;
  stock: number;
  skuImage?: string;
}

export interface Product {
  id?: number;
  platform: string;
  productId: string;
  title: string;
  originalTitle: string;
  price: number;
  originalPrice: number;
  currency: string;
  mainImage: string;
  images: string[]; // JSON string in DB
  detailUrl: string;
  shopName: string;
  shopId: string;
  sales: number;
  rating: number;
  skus: Sku[]; // JSON string in DB
  attributes: Record<string, string>; // JSON string in DB
  costPrice?: number; // 采购价
  phash?: string; // 图像感知哈希 (用于防重复/侵权检测)
  semanticHash?: string; // 语义哈希 (用于标题/描述语义去重)
  vectorEmbedding?: string; // 向量嵌入 (JSON string, 用于高性能检索)
  status?: string; // 产品状态 (draft, active, rejected)
  description?: string; // 产品详情
  createdAt?: Date;
  updatedAt?: Date;
}
