package easydo.technology.model;

import easydo.technology.annotation.NotTableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
public class WarehouseMaterial extends CommonModel {
    private String id;
    private String warehouseId;
    private String materialCode;

    /**
     * 可用库存数量（对应数据库 decimal）
     */
    private BigDecimal number;

    /**
     * 锁定数量（对应数据库 locked_number 字段）
     */
    private BigDecimal lockedNumber;

    /**
     * 冻结数量
     */
    private BigDecimal frozenNumber;

    /**
     * 正常数量
     */
    private BigDecimal normalNumber;

    /**
     * 报废数量
     */
    private BigDecimal abandonNumber;

    private String createTime;
    private String updateTime;
    private Long createId;
    private Long updateId;
    private String status;
    private String tenantId;

    @NotTableField
    private Warehouse warehouse;
}

