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.time.LocalDateTime;

/**
 * <p>
 * 挖矿中订单
 * </p>
 *
 * @author yyb
 * @since 2025-12-02
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class LeaseOrderMining implements Serializable {

    private static final long serialVersionUID=1L;

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

    /**
     * 机器 ID
     */
    private Long machineId;

    /**
     * 用户 ID
     */
    private String userId;

    /**
     * 订单 ID
     */
    private Long orderId;

    private Long orderItemId;

    /**
     * 币种
     */
    private String coin;

    /**
     * 算法
     */
    private String algorithm;

    /**
     * 矿池
     */
    private String pool;

    /**
     * 挖矿地址
     */
    private String poolUrl;

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

    /**
     * 矿工号
     */
    private String workerId;

    /**
     * 收款钱包
     */
    private String walletAddress;

    /**
     * 挖矿信息页面
     */
    private String watchUrl;

    /**
     * 0 租约已到期 1挖矿中 2等待卖家矿机启动中
     */
    private Boolean status;

    /**
     * 挖矿开始时间
     */
    private LocalDateTime startTime;

    /**
     * 挖矿结束时间
     */
    private LocalDateTime endTime;

    /**
     * 逻辑删除字段
     */
    private Boolean del;


}
