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-25
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class LeaseNexaMachinePower implements Serializable {

    private static final long serialVersionUID=1L;

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

    /**
     * 挖矿账户
     */
    private String user;

    /**
     * 矿工
     */
    private String miner;

    /**
     * 记录时间(每五分钟整点)
     */
    private LocalDateTime date;

    /**
     * 五分钟一次的矿工矿机算力
     */
    private BigDecimal accepts;

    /**
     * 矿机在离线状态  离线offline  在线online
     */
    private String state;

    /**
     * 实际记录时间
     */
    private LocalDateTime lastSubmit;


}
