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 StockWarningDTO {

    /**
     * 库存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 warningThreshold;

    /**
     * 缺货量
     */
    private Integer deficit;

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

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