package com.erp.inventory.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

import java.time.LocalDateTime;

/**
 * 库存列表项响应DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StockListItemDTO {

    /**
     * 库存ID
     */
    private Long id;

    /**
     * SKU编码
     */
    private String skuCode;

    /**
     * SKU名称
     */
    private String skuName;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 实际库存
     */
    private Integer quantity;

    /**
     * 锁定库存
     */
    private Integer lockedQuantity;

    /**
     * 可用库存
     */
    private Integer availableQuantity;

    /**
     * 残次品数量
     */
    private Integer defectiveQuantity;

    /**
     * 预警阈值
     */
    private Integer warningThreshold;

    /**
     * 是否低库存预警
     */
    private Boolean isLow;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;
}
