package com.yhy.module.core.dal.dataobject.workbench;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 进度款-清单关联 DO
 * 存储进度款模式下清单的期数值
 *
 * @author yhy
 */
@TableName(value = "yhy_wb_progress_division")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ProgressDivisionDO extends BaseDO {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 租户ID
     */
    private Long tenantId;

    /**
     * 关联进度款模式ID
     */
    private Long progressPaymentModeId;

    /**
     * 关联清单节点ID（yhy_wb_boq_division.id，node_type='boq'）
     */
    private Long boqDivisionId;

    /**
     * 期数值
     */
    private BigDecimal periodValue;
}
