package com.zioinfo.mall.product;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/** 상품 (mall_product). 옵션/이미지 포함. */
@Data
public class MallProduct {
    private Long id;
    private Long categoryId;
    private String sku;
    private String name;
    private String brand;
    private String description;
    private BigDecimal price;
    private BigDecimal salePrice;
    private String status;        // ON_SALE / SOLD_OUT / HIDDEN
    private Integer stock;        // 단순 재고(옵션 미사용 시) — inventory 모듈과 동기
    private String thumbnail;
    private BigDecimal ratingAvg;
    private Integer reviewCount;
    private Integer salesCount;
    private String occasion;       // BIRTHDAY/ANNIVERSARY/SYMPATHY/...
    private String flowerType;     // ROSES/TULIPS/LILIES/...
    private Integer shelfLifeDays; // 생화 시한성(유통기한 일수)
    private LocalDateTime createdAt;

    private List<MallProductOption> options;
    private List<MallProductImage> images;
    private List<MallProductSize> sizes;   // 3사이즈(Original/Deluxe/Grand)
}
