package com.m2pool.lease.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品收益表
 * </p>
 *
 * @author yyb
 * @since 2025-07-23
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class LeaseProductIncome implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 收益记录 ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户拥有商品详情 ID，关联 lease_user_owned_product 表
     */
    private Long userOwnedProductId;

    /**
     * 预估商品结束时的总收益
     */
    private BigDecimal estimatedEndIncome;

    /**
     * 当前实际总收益
     */
    private BigDecimal currentActualIncome;

    /**
     * 记录创建时间
     */
    private LocalDateTime createTime;

    /**
     * 记录更新时间
     */
    private LocalDateTime updateTime;


}
